No need to be a CapabilityCheckingPrivmsg if our plugin name is the same as the capability we're checking.

This commit is contained in:
Jeremy Fincher 2005-01-10 05:39:16 +00:00
parent 141ddfec82
commit 8132f1db73
2 changed files with 2 additions and 4 deletions

View File

@ -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__()

View File

@ -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__()