Skip to content

Commit

Permalink
Set self.hostMask to th eempty string to elegantly solve #286
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Nehren committed Jan 11, 2015
1 parent 8394482 commit 38ea716
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 38ea716

Please sign in to comment.