# HG changeset patch # User Charly COSTE # Date 1267977986 -3600 # Node ID 87fa6bc893deeb4f7d0253be14e47036508bed29 # Parent 0d85049ac68df6d9b8ee35d9d411ea5ce697013b (commands) convert unicode to string before passing it to shlex Signed-off-by: Charly COSTE diff --git a/commands.py b/commands.py --- a/commands.py +++ b/commands.py @@ -31,7 +31,7 @@ commands = ['xmpp-participants', 'irc-pa admin_commands = ['add-bridge', 'add-xmpp-admin', 'change-bridges-mode', 'debug', 'halt', 'remove-bridges', 'restart-bot', 'restart-bridges', 'stop-bot', 'stop-bridges'] def execute(bot, command_line, bot_admin, bridge): - command = shlex.split(command_line) + command = shlex.split(str(command_line)) if len(command) > 1: args_array = command[1:] else: