summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-05-09 13:16:19 +0200
committerFlorent Le Coz <louiz@louiz.org>2013-05-09 13:18:44 +0200
commit708053991a9a742c6755b6e2fd1c1a72cff49c43 (patch)
treed05f2b29a66ef25091a197c527c975e92569af47
parent53170fd4f298e09ee737154733f65e0280db3f2b (diff)
downloadpoezio-708053991a9a742c6755b6e2fd1c1a72cff49c43.tar.gz
poezio-708053991a9a742c6755b6e2fd1c1a72cff49c43.tar.bz2
poezio-708053991a9a742c6755b6e2fd1c1a72cff49c43.tar.xz
poezio-708053991a9a742c6755b6e2fd1c1a72cff49c43.zip
Make the random_nick plugin work on "/nick RANDOM" as well
-rw-r--r--plugins/random_nick.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/random_nick.py b/plugins/random_nick.py
index 59ba47d9..812292e5 100644
--- a/plugins/random_nick.py
+++ b/plugins/random_nick.py
@@ -24,6 +24,7 @@ from random import choice
class Plugin(BasePlugin):
def init(self):
self.api.add_event_handler('joining_muc', self.change_nick_to_random)
+ self.api.add_event_handler('changing_nick', self.change_nick_to_random)
def change_nick_to_random(self, presence):
to = presence["to"]