Add /mute to the admin plugin

This commit is contained in:
mathieui 2012-05-05 19:45:45 +02:00
parent bfa6008495
commit c8728b31d5

View file

@ -32,6 +32,9 @@ class Plugin(BasePlugin):
self.add_tab_command(MucTab, 'op', self.role('moderator'),
'/op <nick>\nOp: set the role of a nick to moderator.',
self.complete_nick)
self.add_tab_command(MucTab, 'mute', self.role('visitor'),
'/mute <nick>\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)