Explorar o código

* Match my nick based on the max NICKLEN

Bryan Drewery %!s(int64=14) %!d(string=hai) anos
pai
achega
d887aed75c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {