From 1e2de1de9a3b65c2254a3a97eb673f9d7af8ff16 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 11 Aug 2014 10:35:49 +0200 Subject: [PATCH] Fix !fgoat --- modules/wolfgame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 2a6f654..58ae16a 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1219,7 +1219,7 @@ def goat(cli, nick, chan, rest): ul = list(var.USERS.keys()) ull = [x.lower() for x in ul] - rest = re.split(' +', rest)[0].strip().lower() + rest = rest.split(' ')[0].strip().lower() if not rest: cli.notice(nick, 'Not enough parameters.') @@ -1254,6 +1254,7 @@ def goat(cli, nick, chan, rest): @cmd('fgoat', admin_only=True) def fgoat(cli, nick, chan, rest): + rest = rest.split(' ')[0].strip() goatact = random.choice(['kicks', 'headbutts']) cli.msg(chan, '\x02{}\x02\'s goat walks by and {} \x02{}\x02.'.format(