totallymike / ircnode

Extensible IRC bot written with node.js
https://github.com/totallymike/ircnode/wiki
MIT License
4 stars 2 forks source link

Private messages are parsed incorrectly #12

Closed sigv closed 12 years ago

sigv commented 12 years ago

Currently, private messages are handled with the same syntax as the channel messages. That means that the source for private messages is set to the bot's nick.

In-depth explanation:

Syntax for messages: realSource!~realSource@foo.bar.com PRIVMSG #channel :!command
Source: #channel (correct)

Syntax for PMs: realSource!~realSource@foo.bar.com PRIVMSG botNick :!command
Source: botNick (incorrect. realSource is the actual source here)
sigv commented 12 years ago

Closing as the fixes are merged into master.