diff options
Diffstat (limited to 'src/complete.c')
| -rw-r--r-- | src/complete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/complete.c b/src/complete.c index 108bc90..1af6930 100644 --- a/src/complete.c +++ b/src/complete.c @@ -5,6 +5,7 @@ #include "edbox.h" #include "screen.h" #include "irc.h" +#include "streq.h" #define COMP_S1 1 #define COMP_PM 2 @@ -27,7 +28,7 @@ static void add_list(const char *n) { int i; for(i = 0; i < 25; i++) - if(strncmp(n, add_to[i], 24) == 0) + if(strneq_i(n, add_to[i], 24)) return; /* we already got this one */ strncpy(add_to[pm_nick_pos], n, 24); @@ -55,7 +56,7 @@ char match(const char *p, const char *q) { if(!len) return 0; while(len--) { - if(tolower(*p) != tolower(*q)) + if(lcase(*p) != lcase(*q)) return 0; p++, q++; } |
