# HG changeset patch # User Charly COSTE # Date 1250808369 -7200 # Node ID 9b7a628ca612cf446c3aa48578bd8c52b7e264df # Parent 1691ab4d131f57ec28b0f3fac81614407ca71427 Fixed XMPP message handling, again. Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -173,7 +173,7 @@ class bot(Thread): try: from_ = bridge.getParticipant(message.getFrom().getResource()) - to_ = bridge.getParticipant(message.getTo().getResource()) + to_ = bridge.getParticipant(xmpp_c.nickname) if from_.protocol == 'xmpp': from_.sayOnIRCTo(to_.nickname, message.getBody())