summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-05 19:45:45 +0200
committermathieui <mathieui@mathieui.net>2012-05-05 19:45:45 +0200
commitc8728b31d50203acac6001e2fc3bc6507d6df857 (patch)
tree54e9aea0539ce5e0dd064e0397dc96aef587550b
parentbfa6008495777b3e31bd199f91c9940fdd10dc9e (diff)
downloadpoezio-c8728b31d50203acac6001e2fc3bc6507d6df857.tar.gz
poezio-c8728b31d50203acac6001e2fc3bc6507d6df857.tar.bz2
poezio-c8728b31d50203acac6001e2fc3bc6507d6df857.tar.xz
poezio-c8728b31d50203acac6001e2fc3bc6507d6df857.zip
Add /mute to the admin plugin
-rw-r--r--plugins/admin.py3
1 files changed, 3 insertions, 0 deletions
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 <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)