From c8728b31d50203acac6001e2fc3bc6507d6df857 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sat, 5 May 2012 19:45:45 +0200 Subject: [PATCH] Add /mute to the admin plugin --- plugins/admin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/admin.py b/plugins/admin.py index 8f4e67a7..cb9ee37b 100644 --- a/plugins/admin.py +++ b/plugins/admin.py @@ -32,6 +32,9 @@ class Plugin(BasePlugin): self.add_tab_command(MucTab, 'op', self.role('moderator'), '/op \nOp: set the role of a nick to moderator.', self.complete_nick) + self.add_tab_command(MucTab, 'mute', self.role('visitor'), + '/mute \nMute: set the role of a nick to visitor.', + self.complete_nick) def role(self, role): return lambda args: self.core.current_tab().command_role(args+' '+role)