diff options
| author | 2018-09-09 09:34:55 +0100 | |
|---|---|---|
| committer | 2018-09-09 13:34:25 +0100 | |
| commit | 87ff49c4d259d653c19b4e6e25c07024ee8cd95c (patch) | |
| tree | 9a74187278dbe6fe31cda0b2bc93b696ae936339 /modules/commands.py | |
| parent | Switch set.py to use delimited events (diff) | |
| signature | ||
Add !serverset and !serverget
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 8 |
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"] |
