Skip to content

Commit

Permalink
Fix for nandub#135
Browse files Browse the repository at this point in the history
Ignore the message if the sender is undefined
  • Loading branch information
radnor committed Apr 30, 2015
1 parent 07753b4 commit 951e007
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class IrcBot extends Adapter
self.receive new TextMessage(user, message)

bot.addListener 'message', (from, to, message) ->
return unless from

if options.nick.toLowerCase() == to.toLowerCase()
# this is a private message, let the 'pm' listener handle it
return
Expand Down

0 comments on commit 951e007

Please sign in to comment.