]> jfr.im git - irc/freenode/jbnc.git/commitdiff
Update
authorroot <redacted>
Thu, 30 Jul 2020 09:53:41 +0000 (11:53 +0200)
committerroot <redacted>
Thu, 30 Jul 2020 09:53:41 +0000 (11:53 +0200)
bouncer.js

index 1406384d6c22728f61d3a741104c99903288df22..2016447028855509c7228aea68826e47097fa4d8 100644 (file)
@@ -611,6 +611,10 @@ function clientReconnect(socket) {
 
       socket.write("@time=null;msgid=null :"+connection.nick+"!"+connection.ircuser+"@"+connection.host+" JOIN :"+_channel.name+"\n");
       _mode_params='';
+    
+      if ( typeof _channel.modes === 'undefined' )
+        _channel.modes = "";
+    
       for(x=0;x<_channel.modes.length;x++) {
         switch(_channel.modes[x]) {
           case 'k': _mode_params+=' '+_channel.key;