summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index fab8b18..d182996 100644
--- a/commands.c
+++ b/commands.c
@@ -194,7 +194,7 @@ static void commands_get(GSocketConnection *connection, const gchar *cmd, GError
for(GSList *node = servers; node; node = g_slist_next(node)) {
struct server *temp = node->data;
- if(g_strcasecmp(temp->host, data[3]) == 0) {
+ if(g_strcasecmp(temp->name, data[3]) == 0) {
server = temp;
break;
}