From 8132f1db7315de012cba47fed8f23cdffe095c8e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 10 Jan 2005 05:39:16 +0000 Subject: [PATCH] No need to be a CapabilityCheckingPrivmsg if our plugin name is the same as the capability we're checking. --- src/Admin.py | 3 +-- src/Owner.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Admin.py b/src/Admin.py index 7dd5b0bd4..8fb1a19a5 100755 --- a/src/Admin.py +++ b/src/Admin.py @@ -56,8 +56,7 @@ import supybot.schedule as schedule import supybot.callbacks as callbacks -class Admin(privmsgs.CapabilityCheckingPrivmsg): - capability = 'admin' +class Admin(privmsgs.Privmsg): def __init__(self): self.__parent = super(Admin, self) self.__parent.__init__() diff --git a/src/Owner.py b/src/Owner.py index 30ae262a3..088cbdb05 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -223,10 +223,9 @@ conf.registerGlobalValue(conf.supybot.plugins.Owner, 'quitMsg', this value is empty, the nick of the person giving the quit command will be used.""")) -class Owner(privmsgs.CapabilityCheckingPrivmsg): +class Owner(callbacks.Privmsg): # This plugin must be first; its priority must be lowest; otherwise odd # things will happen when adding callbacks. - capability = 'owner' def __init__(self, *args, **kwargs): self.__parent = super(Owner, self) self.__parent.__init__()