Browse files

make sure to print the sender as well.

  • Loading branch information...
1 parent 01a12a7 commit 39e254c09b323d33545e7bdd9f6f8cfff8c0646b @chmouel committed Jan 22, 2010
Showing with 5 additions and 4 deletions.
  1. +5 −4 bin/xmpp-notify.py
View
9 bin/xmpp-notify.py
@@ -132,14 +132,15 @@ def main():
msg=match.group("message")
if config['mynickname'] and msg.startswith("%s: " % (config['mynickname'])):
msg = msg.replace("%s: " % (config['mynickname']), "")
+ msg = "%s: %s" % (match.group('sender'), msg)
else:
print "No match on: %s" % line
sys.exit(0)
- c = SendMessage(config['jid'], config['password'],
- config['destination_jid'],
- msg,
- check_online=False)
+ SendMessage(config['jid'], config['password'],
+ config['destination_jid'],
+ msg,
+ check_online=False)
reactor.run()
if __name__ == '__main__':

0 comments on commit 39e254c

Please sign in to comment.