Skip to content

Commit e0d00ff

Browse files
authored
Merge pull request #59 from Madriix/master
Update bouncer.js
2 parents c45c6b1 + d31e441 commit e0d00ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bouncer.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ function clientConnect(socket) {
10221022
else if((_target.indexOf("#")!=-1||_target.indexOf("&")!=-1) && (_mode[i]=='o' || _mode[i]=='k' || _mode[i]=='v' || _mode[i]=='h' || _mode[i]=='l' ||
10231023
_mode[i]=='e' || _mode[i]=='b' || _mode[i]=='I' || _mode[i]=='q' || _mode[i]=='f' ||
10241024
_mode[i]=='j')) {
1025-
if(_mode[i]=='o' && curchan && curchan.names || _mode[i]=='v' && curchan && curchan.names || _mode[i]=='h' && curchan && curchan.names) {
1025+
if(_mode[i]=='o' || _mode[i]=='v' || _mode[i]=='h') {
10261026
for(c=0;c<curchan.names.length;c++) {
10271027
if(curchan.names[c].replace(/(&|~|@|%|\+)/,"")==_mode_target[_mode_count]) {
10281028
switch(_mode[i]) {
@@ -1106,7 +1106,7 @@ function clientConnect(socket) {
11061106
if((_target.indexOf("#")!=-1||_target.indexOf("&")!=-1) && (_mode[i]=='o' || _mode[i]=='k' || _mode[i]=='v' || _mode[i]=='h' || _mode[i]=='l' ||
11071107
_mode[i]=='e' || _mode[i]=='b' || _mode[i]=='I' || _mode[i]=='q' || _mode[i]=='f' ||
11081108
_mode[i]=='j')) {
1109-
if(_mode[i]=='o' && curchan && curchan.names || _mode[i]=='v' && curchan && curchan.names || _mode[i]=='h' && curchan && curchan.names) {
1109+
if(_mode[i]=='o' || _mode[i]=='v' || _mode[i]=='h') {
11101110
for(c=0;c<curchan.names.length;c++) {
11111111
if(curchan.names[c].replace(/(&|~|@|%|\+)/,"")==_mode_target[_mode_count]) {
11121112
switch(_mode[i]) {
@@ -1200,6 +1200,9 @@ function clientConnect(socket) {
12001200
this.channels[__channel].ishop=false;
12011201
this.channels[__channel].isvoice=false;
12021202
}
1203+
if(this.channels[__channel]) {
1204+
this.channels[__channel].name=_channel;
1205+
}
12031206
}
12041207
else {
12051208
if(this.channels[__channel]) {

0 commit comments

Comments
 (0)