# HG changeset patch # User Charly COSTE # Date 1263462422 -3600 # Node ID db3f648a9e9e65b4d1e40a0a30a9b74dd1afa347 # Parent eb65b875be0a485c17f8f544dbc5168b5f8f240c bot → Bot Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -879,7 +879,7 @@ class Bot(threading.Thread): ret += ' - this bridge is stopped, use "restart-bridge '+str(i+1)+'" to restart it' return ret - elif command in bot.admin_commands: + elif command in Bot.admin_commands: if bot_admin == False: return 'You have to be a bot admin to use this command.' @@ -958,9 +958,9 @@ class Bot(threading.Thread): return 'Bridge stopped.' else: - ret = 'Error: "'+command+'" is not a valid command.\ncommands: '+' '.join(bot.commands) + ret = 'Error: "'+command+'" is not a valid command.\ncommands: '+' '.join(Bot.commands) if bot_admin == True: - return ret+'\n'+'admin commands: '+' '.join(bot.admin_commands) + return ret+'\n'+'admin commands: '+' '.join(Bot.admin_commands) else: return ret