From 6066ded6dc27c96ab0b134c5e9a4a2f89d3f67d7 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 10 Apr 2011 19:22:52 -0400 Subject: [PATCH] fix arg handling in git.py --- irc/commands/git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irc/commands/git.py b/irc/commands/git.py index d4d80ba..8d041ea 100644 --- a/irc/commands/git.py +++ b/irc/commands/git.py @@ -15,7 +15,7 @@ def call(a, d): if not check_user_is_admin(): return - args = get_args() + get_args() if not check_has_args(): return @@ -40,10 +40,11 @@ def call(a, d): def get_args(): """get command arguments""" + global args args = data.msg.strip().split(' ') # strip out extra whitespace and split the message into a list while '' in args: # remove any empty arguments args.remove('') - return args[1:] # remove the command itself + args = args[1:] # remove the command itself def check_user_is_admin(): """check if the user is a bot admin (and can use this command, as a result)"""