summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-15 19:10:26 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-15 19:10:26 +0000
commit010a6e99ae801c071999ef4f8b9bcfe270e845b9 (patch)
treed47b653f9841a1d6998125bf68d4df08c9d18647
parent546e06c8b5e14412fea9af90af546ad42afb8524 (diff)
downloadirssi-010a6e99ae801c071999ef4f8b9bcfe270e845b9.zip
Revert unrelated changes slipped in r4774.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4775 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/core/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/commands.c b/src/core/commands.c
index bf32e68c..8c038f8b 100644
--- a/src/core/commands.c
+++ b/src/core/commands.c
@@ -110,7 +110,7 @@ int command_have_sub(const char *command)
for (tmp = commands; tmp != NULL; tmp = tmp->next) {
COMMAND_REC *rec = tmp->data;
- if (g_ascii_strncasecmp(rec->cmd, command, len) == 0 &&
+ if (g_strncasecmp(rec->cmd, command, len) == 0 &&
rec->cmd[len] == ' ')
return TRUE;
}
@@ -265,7 +265,7 @@ static const char *command_expand(char *cmd)
for (tmp = commands; tmp != NULL; tmp = tmp->next) {
COMMAND_REC *rec = tmp->data;
- if (g_ascii_strncasecmp(rec->cmd, cmd, len) == 0 &&
+ if (g_strncasecmp(rec->cmd, cmd, len) == 0 &&
strchr(rec->cmd+len, ' ') == NULL) {
if (rec->cmd[len] == '\0') {
/* full match */
@@ -531,7 +531,7 @@ static int option_find(char **array, const char *option)
for (tmp = array; *tmp != NULL; tmp++, index++) {
const char *text = *tmp + iscmdtype(**tmp);
- if (g_ascii_strncasecmp(text, option, len) == 0) {
+ if (g_strncasecmp(text, option, len) == 0) {
if (text[len] == '\0') {
/* full match */
return index;