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