Skip to content
Snippets Groups Projects
Commit ce941913 authored by cyan's avatar cyan
Browse files

Fix for the 'check_nick' bug when a leaf server introduces new nicks.

parent 9d6da25d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment