From b70909a6fff01b0f2a4a4b21c274b44b1bbaa016 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 9 Aug 2013 11:33:35 +0100 Subject: [PATCH] Client: Crashing out on notices with nicks fix --- client/assets/src/models/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.25.1