aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-09 09:34:55 +0100
committerGravatar jesopo2018-09-09 09:34:55 +0100
commit0f292f461774c7ae04f97b63c1f13619a6d79b87 (patch)
tree239f2fdd3f169b9d7b1a13e4d3992e2dfafc858d /modules/commands.py
parentSwitch set.py to use delimited events (diff)
Add !serverset and !serverget
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/commands.py b/modules/commands.py
index 79631a8c..21b0f361 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -64,13 +64,15 @@ class Module(object):
help="Unignore commands from a given user", usage="<nickname>",
permission="unignore")
- exports.add("channelset", {"setting": "command-prefix",
- "help": "Set the command prefix used in this channel"})
-
events.on("new").on("user", "channel").hook(self.new)
events.on("send").on("stdout").hook(self.send_stdout)
events.on("send").on("stderr").hook(self.send_stderr)
+ exports.add("channelset", {"setting": "command-prefix",
+ "help": "Set the command prefix used in this channel"})
+ exports.add("serverset", {"setting": "identity-mechanism",
+ "help": "Set the identity mechanism for this server"})
+
def new(self, event):
if "user" in event:
target = event["user"]