Client: Showing IrcErrors #268 #259
[KiwiIRC.git] / client / assets / src / models / network.js
index f0801a51287ef60b5982aeeffa0886ed2b415e87..1dcd6a46efdedd0a1b3aba6ded995430738bb17d 100644 (file)
@@ -82,6 +82,7 @@
             this.gateway.on('whois', onWhois, this);
             this.gateway.on('away', onAway, this);
             this.gateway.on('list_start', onListStart, this);
+            this.gateway.on('irc_error', onIrcError, this);
         },
 
 
     function onIrcError(event) {
         var panel, tmp;
 
-        if (event.channel !== undefined && !(panel = _kiwi.app.panels.getByName(event.channel))) {
+        if (event.channel !== undefined && !(panel = this.panels.getByName(event.channel))) {
             panel = this.panels.server;
         }