Created
August 1, 2011 21:21
-
-
Save Ludo6431/1119033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def answer_privmsg(c, e, s): | |
dest = '' | |
if e.eventtype() in ['pubmsg', 'action', 'pubnotice', 'join', 'part', 'kick', 'mode']: | |
dest = e.target() | |
else: | |
dest = nm_to_n(e.source()) | |
c.privmsg(dest, s) | |
log.debug('Answered to '+dest+' with '+s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment