diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-15 18:40:37 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-15 18:40:37 +0000 |
commit | 546e06c8b5e14412fea9af90af546ad42afb8524 (patch) | |
tree | 98b5cbc484b034a0122d59984c021bfaa7fda1a9 /src/core | |
parent | 8ccdc7267f8ae35a4b59fefbc579e6bf29d3c1c5 (diff) | |
download | irssi-546e06c8b5e14412fea9af90af546ad42afb8524.zip |
Fix typo.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4774 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/commands.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/commands.c b/src/core/commands.c index 8c446ba8..bf32e68c 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_strncasecmp(rec->cmd, command, len) == 0 && + if (g_ascii_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_strncasecmp(rec->cmd, cmd, len) == 0 && + if (g_ascii_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_strncasecmp(text, option, len) == 0) { + if (g_ascii_strncasecmp(text, option, len) == 0) { if (text[len] == '\0') { /* full match */ return index; @@ -931,7 +931,7 @@ static void event_command(const char *line, SERVER_REC *server, void *item) return; } - /* same cmdchar twice ignores aliases ignores aliases */ + /* same cmdchar twice ignores aliases */ line++; if (*line == *cmdchar) { line++; |