# HG changeset patch # User Charly COSTE # Date 1268223193 -3600 # Node ID 38dd27098fefa2fc4f14b963ec6f6bdc0beea4e5 # Parent 3b930e2fad43b0b2e7652600fefb3cdd932cce56 minor fix in _irc_event_handler, check source_nickname before giving it to Bridge.get_participant Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -601,10 +601,12 @@ class Bot(threading.Thread): bridge = self.get_bridge(irc_room=chan, irc_server=connection.server) - try: - from_ = bridge.get_participant(source_nickname) - except Bridge.NoSuchParticipantException: - from_ = None + from_ = None + if source_nickname: + try: + from_ = bridge.get_participant(source_nickname) + except Bridge.NoSuchParticipantException: + pass # Join event