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

Fix bug in previous commit

parent 96e5ced8
No related branches found
No related tags found
No related merge requests found
...@@ -545,13 +545,12 @@ function IRCClient_do_join(chan_name,join_key) { ...@@ -545,13 +545,12 @@ function IRCClient_do_join(chan_name,join_key) {
this.numeric403(chan_name); this.numeric403(chan_name);
return 0; return 0;
} }
for (theChar in chan_name) { if(chan_name.search(/[\x00-\x20\x2c\xa0]/)!=-1) {
if(chan_name.search(/[\x00-\x20\x2c\xa0]/)!=-1) { if (this.local) {
if (this.local) this.numeric(479, chan_name
this.numeric(479, chan_name + " :Channel name contains illegal characters.");
+ " :Channel name contains illegal characters.");
return 0;
} }
return 0;
} }
if (this.channels[uc_chan_name]) if (this.channels[uc_chan_name])
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment