From 38ea71610d823f87d023b8171586a7bc72c0cbdf Mon Sep 17 00:00:00 2001 From: Chris Nehren Date: Sun, 11 Jan 2015 01:01:01 -0500 Subject: [PATCH] Set self.hostMask to th eempty string to elegantly solve #286 --- lib/irc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/irc.js b/lib/irc.js index b3087df4..0c7a0552 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -97,6 +97,8 @@ function Client(server, nick, opt) { self.activateFloodProtection(); } + self.hostMask = ''; + // TODO - fail if nick or server missing // TODO - fail if username has a space in it if (self.opt.autoConnect === true) {