aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2016-03-15 16:48:41 +0200
committerkongr45gpen <electrovesta@gmail.com>2016-03-15 16:48:41 +0200
commit8a85ea739bb6b76d0dfc0d7afce3f12625c54c5e (patch)
tree06cd66fb1ef875b7aadd9a9eb94414b15c3030e6 /plugin.py
parentff0fab9216de14f382b413b991878f2b4e5bb16d (diff)
downloadsupybot_github-8a85ea739bb6b76d0dfc0d7afce3f12625c54c5e.tar.gz
supybot_github-8a85ea739bb6b76d0dfc0d7afce3f12625c54c5e.tar.bz2
supybot_github-8a85ea739bb6b76d0dfc0d7afce3f12625c54c5e.zip
Require op capabilities to manipulate secrets for a channel
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py6
1 files changed, 3 insertions, 3 deletions
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):
"""[<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):
"""<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

© 2014-2024 Faster IT GmbH | imprint | privacy policy