From 708053991a9a742c6755b6e2fd1c1a72cff49c43 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 9 May 2013 13:16:19 +0200 Subject: Make the random_nick plugin work on "/nick RANDOM" as well --- plugins/random_nick.py | 1 + 1 file changed, 1 insertion(+) 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"] -- cgit v1.2.3