diff options
author | Berke Viktor <berkeviktor@aol.com> | 2012-06-16 13:01:47 +0200 |
---|---|---|
committer | Berke Viktor <berkeviktor@aol.com> | 2012-06-16 13:01:47 +0200 |
commit | 35821f3875e4a718932f7f67debdeacaa8c6cc3d (patch) | |
tree | 33b2ab7391e65f4a805207f272c6f25671c822c8 /src/common/chanopt.c | |
parent | ee7dcc5f22cfc5fcd6b36e948ab1d970fb8dcc3b (diff) |
Fix string handling for Turkish locale
Diffstat (limited to 'src/common/chanopt.c')
-rw-r--r-- | src/common/chanopt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/chanopt.c b/src/common/chanopt.c index f8e16e8b..198ebe6c 100644 --- a/src/common/chanopt.c +++ b/src/common/chanopt.c @@ -84,9 +84,9 @@ chanopt_command (session *sess, char *tbuf, char *word[], char *word_eol[]) if (word[offset][0]) { - if (!strcasecmp (word[offset], "ON")) + if (!g_ascii_strcasecmp (word[offset], "ON")) newval = 1; - else if (!strcasecmp (word[offset], "OFF")) + else if (!g_ascii_strcasecmp (word[offset], "OFF")) newval = 0; else if (word[offset][0] == 'u') newval = SET_DEFAULT; @@ -186,8 +186,8 @@ chanopt_find (char *network, char *channel, gboolean add_new) for (list = chanopt_list; list; list = list->next) { co = list->data; - if (!strcasecmp (co->channel, channel) && - !strcasecmp (co->network, network)) + if (!g_ascii_strcasecmp (co->channel, channel) && + !g_ascii_strcasecmp (co->network, network)) return co; } |