Updated error messages.

This commit is contained in:
Jeremy Fincher 2004-02-05 07:53:00 +00:00
parent 9def8a49bd
commit 8eeb9e7221

View File

@ -244,8 +244,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
irc.reply(utils.exnToString(e)) irc.reply(utils.exnToString(e))
else: else:
# This should never happen, so I haven't bothered updating # This should never happen, so I haven't bothered updating
# this error string to say --enable-eval. # this error string to say --allow-eval.
irc.error('You must enable conf.allowEval for that to work.') irc.error('You must run supybot with the --allow-eval '
'option for this command to be enabled.')
def _exec(self, irc, msg, args): def _exec(self, irc, msg, args):
"""<statement> """<statement>
@ -261,12 +262,13 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
irc.reply(utils.exnToString(e)) irc.reply(utils.exnToString(e))
else: else:
# This should never happen, so I haven't bothered updating # This should never happen, so I haven't bothered updating
# this error string to say --enable-eval. # this error string to say --allow-eval.
irc.error('You must enable conf.allowEval for that to work.') irc.error('You must run supybot with the --allow-eval '
'option for this command to be enabled.')
else: else:
def eval(self, irc, msg, args): def eval(self, irc, msg, args):
"""Run your bot with --enable-eval if you want this to work.""" """Run your bot with --allow-eval if you want this to work."""
irc.error('You must give your bot the --enable-eval switch for ' irc.error('You must give your bot the --allow-eval option for '
'this command to be enabled.') 'this command to be enabled.')
_exec = eval _exec = eval