Skip to content

Instantly share code, notes, and snippets.

@EntityReborn
Created April 16, 2011 20:02
Show Gist options
  • Save EntityReborn/923437 to your computer and use it in GitHub Desktop.
Save EntityReborn/923437 to your computer and use it in GitHub Desktop.
d = defer.maybeDeferred(func, self, user, channel, msg)
d.addErrback(self.printerror)
d.addCallback(self.msg, channel)
def msg(self, user, message):
pass
# user ends up having the message, and message the target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment