Created
January 13, 2011 15:08
-
-
Save geeknam/778000 to your computer and use it in GitHub Desktop.
Get Email of user from xmpp_handlers.CommandHandler
This file contains hidden or 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
class XMPPHandler(xmpp_handlers.CommandHandler): | |
def text_message(self, message): | |
idx = message.sender.index('/') | |
user = message.sender[0:idx] | |
logging.debug(user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment