teddziuba/hubot — pull request #13 by ecarreras (2011-12-14 23:35:04+00:00)
Title: Fix infinite loops with private messages

When a user makes a /query hubot and sends a message IRC server sends:
:Nick!~foo@XX.XX.XX.XX PRIVMSG hubot :foo
then chan = hubot and hubot sends response to himself wich produces a infinite loop.

With this patch hubot interact with private messages