From 96afc582f475d0bba11e0f078876e69e0ba32666 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Tue, 15 Jul 2014 20:34:46 +0200 Subject: [PATCH] Allow passing host to fstasis instead of just nick --- modules/wolfgame.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 7a06f6f..ecc5a89 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2649,11 +2649,14 @@ def fstasis(cli, nick, chan, rest): lusers = {k.lower(): v for k, v in var.USERS.items()} user = data[0].lower() - if user not in lusers: - pm(cli, nick, "Sorry, {0} cannot be found.".format(data[0])) - return + #if user not in lusers: + # pm(cli, nick, "Sorry, {0} cannot be found.".format(data[0])) + # return - cloak = lusers[user]['cloak'] + if user in lusers: + cloak = lusers[user]['cloak'] + else: + cloak = user if len(data) == 1: if cloak in var.STASISED: