From 48aa8d0bda5d5e61a41e00301cc15c07e47a2237 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 1 May 2013 18:52:29 +0200 Subject: [PATCH] Actually have a random nick ONLY when our nick is RANDOM --- plugins/random_nick.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/random_nick.py b/plugins/random_nick.py index b73ec247..59ba47d9 100644 --- a/plugins/random_nick.py +++ b/plugins/random_nick.py @@ -27,8 +27,9 @@ class Plugin(BasePlugin): def change_nick_to_random(self, presence): to = presence["to"] - to.resource = gen_nick(3) - presence["to"] = to + if to.resource == 'RANDOM': + to.resource = gen_nick(3) + presence["to"] = to s = ["i", "ou", "ou", "on", "a", "o", "u", "i"] c = ["b", "c", "d", "f", "g", "h", "j", "k", "m", "l", "n", "p", "r", "s", "t", "v", "z"]