Skip to content

Instantly share code, notes, and snippets.

@Ludo6431
Created August 1, 2011 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ludo6431/1119033 to your computer and use it in GitHub Desktop.
Save Ludo6431/1119033 to your computer and use it in GitHub Desktop.
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