mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-03 21:10:40 +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')
|
_srcPlugins = ('Owner', 'Misc', 'Admin', 'User', 'Channel')
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
callbacks.Privmsg.__init__(self)
|
callbacks.Privmsg.__init__(self)
|
||||||
|
if hasattr(self.__class__, '_exec'):
|
||||||
setattr(self.__class__, 'exec', self.__class__._exec)
|
setattr(self.__class__, 'exec', self.__class__._exec)
|
||||||
self.defaultPlugins = {'list': 'Misc',
|
self.defaultPlugins = {'list': 'Misc',
|
||||||
'capabilities': 'User',
|
'capabilities': 'User',
|
||||||
@ -242,6 +243,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
return
|
return
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
|
||||||
|
if conf.allowEval:
|
||||||
def eval(self, irc, msg, args):
|
def eval(self, irc, msg, args):
|
||||||
"""<expression>
|
"""<expression>
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ registry.open(registryFilename)
|
|||||||
|
|
||||||
import log
|
import log
|
||||||
import conf
|
import conf
|
||||||
|
conf.allowEval = True
|
||||||
|
|
||||||
import fix
|
import fix
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user