pyrc
pyrc copied to clipboard
The bot responds wrongly when PMing it.
When you talk in a certain channel, the raw IRC line looks like this:
:[email protected] PRIVMSG #testchannel :blah blah
So, the "recipient" variable is set to #testchannel
.
When you send a PM to the robot (nicknamed JCDenton in this example), the raw IRC line looks like this:
:[email protected] PRIVMSG JCDenton :blah blah
So, the "recipient" variable is set to JCDenton
. It's technically right, but it really should be davidpeter
. The "recipient" variable probably should be renamed to "sender".