From fec4a9b403bc7ee1a480f521ee5bad745d2a8f40 Mon Sep 17 00:00:00 2001 From: Jacob Peddicord Date: Wed, 7 Apr 2010 12:27:04 -0400 Subject: [PATCH] add XMPP to the beginning of log messages --- highlightxmpp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/highlightxmpp.py b/highlightxmpp.py index 7220cf5..4141cfa 100644 --- a/highlightxmpp.py +++ b/highlightxmpp.py @@ -62,7 +62,7 @@ def connect_xmpp(): client.connect() client.auth(jid.getNode(), password) except: - w.prnt('', "Could not connect or authenticate to XMPP server.") + w.prnt('', "XMPP: Could not connect or authenticate to server.") client = None return False return True @@ -85,9 +85,9 @@ def send_xmpp(data, signal, msg, trial=1): # fail. catch that here and try to reconnect. isConnected() should # start to realize that once this exception is triggered. if trial > 3: - w.prnt('', "Could not send to XMPP server.") + w.prnt('', "XMPP: Could not send to server.") else: - w.prnt('', "Sending failed. Trying again...") + w.prnt('', "XMPP: Sending failed. Trying again...") sleep(0.5) send_xmpp(data, signal, msg, trial + 1) return w.WEECHAT_RC_OK