From: Darren Date: Fri, 9 Aug 2013 10:33:35 +0000 (+0100) Subject: Client: Crashing out on notices with nicks fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b70909a6fff01b0f2a4a4b21c274b44b1bbaa016;p=KiwiIRC.git Client: Crashing out on notices with nicks fix --- diff --git a/client/assets/src/models/network.js b/client/assets/src/models/network.js index 0f5c901..22a7c1f 100644 --- a/client/assets/src/models/network.js +++ b/client/assets/src/models/network.js @@ -390,7 +390,7 @@ panel = this.panels.getByName(event.target) || this.panels.getByName(event.nick); // Forward ChanServ messages to its associated channel - if (event.nick.toLowerCase() == 'chanserv' && event.msg.charAt(0) == '[') { + if (event.nick && event.nick.toLowerCase() == 'chanserv' && event.msg.charAt(0) == '[') { channel_name = /\[([^ \]]+)\]/gi.exec(event.msg); if (channel_name && channel_name[1]) { channel_name = channel_name[1];