changeset 142:8c6184411ec7

minor fix in commands (unbound variable) Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 17 Jan 2010 11:41:56 +0100
parents 46c02cc89f18
children 61d7cae1d15d
files commands.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'])