From ce9419136642ba77dc49f58c8d74ef30394023a3 Mon Sep 17 00:00:00 2001 From: cyan <> Date: Thu, 4 Dec 2003 11:00:08 +0000 Subject: [PATCH] Fix for the 'check_nick' bug when a leaf server introduces new nicks. --- exec/load/ircd_server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/load/ircd_server.js b/exec/load/ircd_server.js index 8ad56d5146..b38abd5e29 100644 --- a/exec/load/ircd_server.js +++ b/exec/load/ircd_server.js @@ -75,6 +75,7 @@ function IRC_Server() { // Global Functions this.check_timeout=IRCClient_check_timeout; this.set_chanmode=IRCClient_set_chanmode; + this.check_nickname=IRCClient_check_nickname; // Output helper functions (shared) } @@ -430,7 +431,7 @@ function Server_Work() { ThisOrigin.nick = cmd[1]; } else if (cmd[10]) { if (!this.hub) { - if(!this.check_nickname(cmd[1])) { + if(!this.check_nickname(cmd[1],true)) { umode_notice(USERMODE_OPER,"Notice","Server " + this.nick + " trying to introduce invalid nickname: " + cmd[1] + ", killed."); this.ircout("KILL " + cmd[1] + " :Bogus Nickname."); break; -- GitLab