Created
February 19, 2011 19:45
-
-
Save jk0/835309 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 on_pubmsg(self, connection, event): | |
"""Handle public messages""" | |
print event.source() | |
self.source = event.source().split("@", 1)[0] | |
self.target = event.target() | |
nick = irclib.nm_to_n(event.source()) | |
msg = event.arguments()[0] | |
self.log.info("%s <%s> %s" % (self.target, nick, msg)) | |
self.poll_messages(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment