Skip to content

Commit

Permalink
Merge pull request nandub#64 from hashbrowncipher/pm_once
Browse files Browse the repository at this point in the history
Handle PMs once, rather than twice.
  • Loading branch information
jgable committed Feb 15, 2013
2 parents e5accaa + 6b03654 commit b8d7825
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ class IrcBot extends Adapter
self.createUser channel, nick

bot.addListener 'message', (from, to, message) ->
if options.nick.toLowerCase() == to.toLowerCase()
# this is a private message, let the 'pm' listener handle it
return

console.log "From #{from} to #{to}: #{message}"

user = self.createUser to, from
Expand Down

0 comments on commit b8d7825

Please sign in to comment.