diff mcabber/src/compl.c @ 104:fe7257d251ac

[/trunk] Changeset 118 by mikael * Commands are ready. Callback system in place. * Implement /roster callback :) * Completion is case-insensitive (good idea??)
author mikael
date Thu, 21 Apr 2005 20:22:35 +0000
parents 93dcc4e15d4a
children 94b251102069
line wrap: on
line diff
--- a/mcabber/src/compl.c	Thu Apr 21 19:38:23 2005 +0000
+++ b/mcabber/src/compl.c	Thu Apr 21 20:22:35 2005 +0000
@@ -78,7 +78,7 @@
   // Build the list of matches
   for (sl_cat=compl_cat; sl_cat; sl_cat = g_slist_next(sl_cat)) {
     char *word = sl_cat->data;
-    if (!strncmp(prefix, word, len)) {
+    if (!strncasecmp(prefix, word, len)) {
       if (strlen(word) != len)
         c->list = g_slist_append(c->list, g_strdup(word+len)); // TODO sort
     }