changeset 227:87fa6bc893de

(commands) convert unicode to string before passing it to shlex Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 17:06:26 +0100
parents 0d85049ac68d
children 3c493741e53a
files commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: