From aa9e10db42ac039f2824d00c17a5e56b60f06924 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 4 Jan 2015 16:34:29 -0800 Subject: [PATCH] CtcpNext: limit set and unset commands to admin --- CtcpNext/plugin.py | 4 ++-- RelayNext/test.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CtcpNext/plugin.py b/CtcpNext/plugin.py index 010e396..a74f254 100644 --- a/CtcpNext/plugin.py +++ b/CtcpNext/plugin.py @@ -119,7 +119,7 @@ class CtcpNext(callbacks.PluginRegexp): """ self.db[ctcp.upper()] = response irc.replySuccess() - set = wrap(set, ['somethingWithoutSpaces', 'text']) + set = wrap(set, ['admin', 'somethingWithoutSpaces', 'text']) def unset(self, irc, msg, args, ctcp): """ @@ -133,7 +133,7 @@ class CtcpNext(callbacks.PluginRegexp): irc.error("No such CTCP '%s' exists." % ctcp, Raise=True) else: irc.replySuccess() - unset = wrap(unset, ['somethingWithoutSpaces']) + unset = wrap(unset, ['admin', 'somethingWithoutSpaces']) def list(self, irc, msg, args): """takes no arguments. diff --git a/RelayNext/test.py b/RelayNext/test.py index e931e1c..021f988 100644 --- a/RelayNext/test.py +++ b/RelayNext/test.py @@ -33,5 +33,4 @@ from supybot.test import * class RelayNextTestCase(PluginTestCase): plugins = ('RelayNext',) - # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: