diff --git a/src/irc.coffee b/src/irc.coffee index e6d7e5e..277e313 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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