# HG changeset patch # User Charly COSTE # Date 1263724916 -3600 # Node ID 8c6184411ec7c6c33fcdc7ec12c2c192774d88f5 # Parent 46c02cc89f18c80552e37e2314049ea4674f4006 minor fix in commands (unbound variable) Signed-off-by: Charly COSTE diff --git a/commands.py b/commands.py --- a/commands.py +++ b/commands.py @@ -153,6 +153,7 @@ def halt(bot, command, args_array, bot_a def irc_participants(bot, command, args_array, bot_admin, bridge): + ret = '' if not bridge: for b in bot.bridges: irc_participants_nicknames = b.get_participants_nicknames_list(protocols=['irc']) @@ -183,6 +184,7 @@ def stop_bridge(bot, command, args_array def xmpp_participants(bot, command, args_array, bot_admin, bridge): + ret = '' if not bridge: for b in bot.bridges: xmpp_participants_nicknames = b.get_participants_nicknames_list(protocols=['xmpp'])