Permalink
Browse files

i decided i like knowing where the nick is sending the message

  • Loading branch information...
1 parent 631b9e0 commit 2ff5f04f0d280855c6cfaa825bae8e6054eccfc3 @atoponce committed Sep 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 email-0mq.py
View
@@ -30,11 +30,12 @@
continue
message = base64.b64decode(y['message'])
+ channel = base64.b64decode(y['channel'])
# Change your email-to-sms address as provided by your mobile provider
fromaddr = 'weechat@irc.example.com'
toaddr = '1234567890@messaging.sprintpcs.com'
- msg = MIMEText("{0}: {1}".format(nick, message))
+ msg = MIMEText("{0}/{1}: {2}".format(channel, nick, message))
msg['To'] = email.utils.formataddr(('eightyeight', toaddr))
msg['From'] = email.utils.formataddr(('WeeChat', fromaddr))

0 comments on commit 2ff5f04

Please sign in to comment.