summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/admin.py60
1 files changed, 60 insertions, 0 deletions
diff --git a/plugins/admin.py b/plugins/admin.py
index fac34fdb..638a31a6 100644
--- a/plugins/admin.py
+++ b/plugins/admin.py
@@ -1,3 +1,63 @@
+"""
+This plugin adds several convenient aliases, to shorten
+roles/affiliation management.
+
+Installation
+------------
+
+You only have to load the plugin:
+
+``/load admin``
+
+Aliases defined
+---------------
+
+All those commands take a nick or a JID as a parameter.
+
+For roles
+~~~~~~~~~
+
+.. glossary::
+ :sorted:
+
+ /visitor
+ /mute
+ Set the role to ``visitor``
+
+ /participant
+ Set the role to ``participant``
+
+ /moderator
+ /op
+ Set the role to ``moderator``
+
+
+For affiliations
+~~~~~~~~~~~~~~~~
+
+.. glossary::
+ :sorted:
+
+ /admin
+ Set the affiliation to ``admin``
+
+ /member
+ /voice
+ Set the affiliation to ``member``
+
+ /noaffiliation
+ Set the affiliation to ``none``
+
+ /owner
+ Set the affiliation to ``owner``
+
+
+
+
+
+"""
+
+
from plugin import BasePlugin
from tabs import MucTab