Selaa lähdekoodia

* Match my nick based on the max NICKLEN

Bryan Drewery 14 vuotta sitten
vanhempi
commit
d887aed75c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/mod/server.mod/servmsg.c

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -176,7 +176,7 @@ int check_bind_ctcpr(char *nick, char *uhost, struct userrec *u,
 
 bool match_my_nick(char *nick)
 {
-  return (!rfc_casecmp(nick, botname));
+  return (!rfc_ncasecmp(nick, botname, nick_len));
 }
 
 void rehash_monitor_list() {