fix concatenation error

This commit is contained in:
Jacob Peddicord
2010-04-06 12:21:19 -04:00
parent 06ce1a2fa8
commit 78a7858be0

View File

@@ -85,9 +85,9 @@ def send_xmpp(data, signal, msg, trial=1):
# fail. catch that here and try to reconnect. isConnected() should # fail. catch that here and try to reconnect. isConnected() should
# start to realize that once this exception is triggered. # start to realize that once this exception is triggered.
if trial > 3: if trial > 3:
w.prnt('', "Could send to XMPP server.") w.prnt('', "Could not send to XMPP server.")
else: else:
w.prnt('', "Lost connection to XMPP server. Trying to send again... (trial %d)" % trial + 1) w.prnt('', "Sending failed. Trying again... (trial %d)" % (trial + 1))
sleep(0.5) sleep(0.5)
send_xmpp(data, signal, msg, trial + 1) send_xmpp(data, signal, msg, trial + 1)
return w.WEECHAT_RC_OK return w.WEECHAT_RC_OK