hack the replypath to the sender, if we're handling a privmsg

This commit is contained in:
Brian S. Stephan 2011-01-07 21:14:14 -06:00
parent fc2814e57c
commit 516940630c
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ class DrBotIRC(irclib.IRC):
what = event.arguments()[0]
admin_unlocked = False
# privmsg
if replypath == connection.get_nickname():
replypath = nick
try:
if userhost == self.config.get('dr.botzo', 'admin_userhost'):
admin_unlocked = True