Skip to content

Commit 3e9559f

Browse files
authored
Merge pull request #54 from Madriix/patch-3
Update bouncer.js
2 parents 9c42249 + 5fd60f0 commit 3e9559f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bouncer.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,14 @@ server = doServer(tlsOptions,function(socket) {
352352
}
353353
else {
354354
switch(command[1].toUpperCase().trim()) {
355+
case 'CHANNELS':
356+
for (key in connections[this.hash].channels) {
357+
if (connections[this.hash].channels.hasOwnProperty(key)) {
358+
this.write(":*jbnc NOTICE * :Active channel: "+connections[this.hash].channels[key].name+"\n");
359+
}
360+
}
361+
this.write(":*jbnc NOTICE * :End of active channels\n");
362+
break;
355363
case 'OPMODE':
356364
if(command[2]) {
357365
if(command[2].toLowerCase().trim()=="on") {

0 commit comments

Comments
 (0)