summaryrefslogtreecommitdiff
path: root/plugins/random_nick.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/random_nick.py')
-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"]