From 8a85ea739bb6b76d0dfc0d7afce3f12625c54c5e Mon Sep 17 00:00:00 2001 From: kongr45gpen Date: Tue, 15 Mar 2016 16:48:41 +0200 Subject: Require op capabilities to manipulate secrets for a channel --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin.py') diff --git a/plugin.py b/plugin.py index 89a4832..b12df95 100644 --- a/plugin.py +++ b/plugin.py @@ -159,7 +159,7 @@ class Github(callbacks.Plugin): # record = Github.secret.DB.DB.Record(secret = sec) # self.db.set(channel, 1, secret) irc.replySuccess() - set = wrap(set, ['channel', 'text']) + set = wrap(set, ['op', 'text']) def reset(self, irc, msg, args, channel): """[] @@ -169,7 +169,7 @@ class Github(callbacks.Plugin): """ self.db.remove(channel, 1) irc.reply("Channel %s no longer has a secret." % channel) - reset = wrap(reset, ['channel']) + reset = wrap(reset, ['op']) def generate(self, irc, msg, args, channel): """ @@ -180,7 +180,7 @@ class Github(callbacks.Plugin): secret = Utility.randomString(40) irc.reply("Setting secret for %s to: %s" % (channel, secret)) self.db.set(channel, 1, secret) - generate = wrap(generate, ['channel']) + generate = wrap(generate, ['op']) Class = Github -- cgit v1.2.3