summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/random_nick.py5
1 files 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"]