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

Joining channel '0' would crash the IRCd (Fixed)

parent 4cc9869f
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ const VERSION_STR = "Synchronet "
// It also enables some more verbose WALLOPS, especially as they pertain to
// blocking functions.
// The special "DEBUG" oper command also switches this value.
var debug = true;
var debug = false;
// Resolve connecting clients' hostnames? If set to false, everyone will have
// an IP address instead of a hostname in their nick!user@host identifier.
......@@ -440,7 +440,7 @@ function search_nickbuf(bufnick) {
if (!Users[NickHistory[nb].newnick.toUpperCase()])
return search_nickbuf(NickHistory[nb].newnick);
else
return NickHistory[nb].newnick;
return Users[NickHistory[nb].newnick.toUpperCase()];
}
}
return 0;
......
......@@ -38,7 +38,7 @@ const CHANMODE_VOICE =(1<<11); // v
// These are used in the mode crunching section to figure out what character
// to display in the crunched MODE line.
function Mode (modechar,args,state,list,isnick) {
function Mode(modechar,args,state,list,isnick) {
// The mode's character
this.modechar = modechar;
// Does this mode take a single argument only?
......@@ -657,7 +657,7 @@ function IRCClient_part_all() {
for(thisChannel in this.channels) {
partingChannel=this.channels[thisChannel];
this.do_part(Channels[partingChannel].nam);
this.do_part(partingChannel.nam);
}
}
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