From 82a20a209a4f5dc28060463d00797f0d2acd56a3 Mon Sep 17 00:00:00 2001 From: dngfx Date: Sat, 8 Sep 2018 11:54:06 +0100 Subject: Set unique user properly. --- modules/ducks_new.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/ducks_new.py b/modules/ducks_new.py index 261bb24b..7ca9bada 100644 --- a/modules/ducks_new.py +++ b/modules/ducks_new.py @@ -96,11 +96,10 @@ class Module(object): return user = event["user"] - hostname = user.hostname game = channel.games["ducks"] - if hostname not in game["unique_nicks"]: - game["unique_nicks"].append(hostname) + if user not in game["unique_nicks"]: + game["unique_nicks"].append(user) if game["current_unique_nicks"] > 0: game["current_unique_nicks"] = game["current_unique_nicks"] - 1 @@ -112,3 +111,5 @@ class Module(object): if game["current_active_delay"] > 0: game["current_active_delay"] = game["current_active_delay"] \ - DELAY_REDUCE + + print(game) \ No newline at end of file -- cgit v1.3.1-10-gc9f91