summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f68d0cd)
raw | patch | inline | side by side (parent: f68d0cd)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 20 Apr 2008 08:20:44 +0000 (10:20 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 20 Apr 2008 08:20:44 +0000 (10:20 +0200) |
Apparently the error and okay messages may have different cases..
src/teamspeak2.c | patch | blob | history |
diff --git a/src/teamspeak2.c b/src/teamspeak2.c
index 3bad6b0ebabdee773f9828e26756704876d554d8..50e8d2235144395f2c20c6c1ebe868c52f8d24d4 100644 (file)
--- a/src/teamspeak2.c
+++ b/src/teamspeak2.c
@@ -394,7 +394,7 @@ static int tss2_select_vserver (FILE *read_fh, FILE *write_fh, vserver_list_t *v
response[sizeof (response)] = 0;
/* Check answer */
- if ((strncmp ("OK", response, 2) == 0)
+ if ((strncasecmp ("OK", response, 2) == 0)
&& ((response[2] == 0)
|| (response[2] == '\n')
|| (response[2] == '\r')))
continue;
}
}
- else if (strncmp ("OK", buffer, 2) == 0)
+ else if (strncasecmp ("OK", buffer, 2) == 0)
{
break;
}
break;
}
- if (strncmp ("ERROR", buffer, 5) == 0)
+ if (strncasecmp ("ERROR", buffer, 5) == 0)
{
ERROR ("teamspeak2 plugin: Server returned an error: %s",
buffer);
break;
}
- else if (strncmp ("OK", buffer, 2) == 0)
+ else if (strncasecmp ("OK", buffer, 2) == 0)
{
break;
}