pyrc icon indicating copy to clipboard operation
pyrc copied to clipboard

The bot responds wrongly when PMing it.

Open sarenji opened this issue 12 years ago • 0 comments

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".

sarenji avatar Aug 13 '12 02:08 sarenji