mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-03 13:00:41 +01:00
Changed not even to define eval/exec when conf.allowEval is False.
This commit is contained in:
parent
b63d48f526
commit
9aede17efd
@ -110,6 +110,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
_srcPlugins = ('Owner', 'Misc', 'Admin', 'User', 'Channel')
|
||||
def __init__(self):
|
||||
callbacks.Privmsg.__init__(self)
|
||||
if hasattr(self.__class__, '_exec'):
|
||||
setattr(self.__class__, 'exec', self.__class__._exec)
|
||||
self.defaultPlugins = {'list': 'Misc',
|
||||
'capabilities': 'User',
|
||||
@ -242,6 +243,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
||||
return
|
||||
irc.replySuccess()
|
||||
|
||||
if conf.allowEval:
|
||||
def eval(self, irc, msg, args):
|
||||
"""<expression>
|
||||
|
||||
|
@ -53,6 +53,7 @@ registry.open(registryFilename)
|
||||
|
||||
import log
|
||||
import conf
|
||||
conf.allowEval = True
|
||||
|
||||
import fix
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user