Commit 70805399 authored by louiz’'s avatar louiz’

Make the random_nick plugin work on "/nick RANDOM" as well

parent 53170fd4
......@@ -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"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment