Made an error message a bit clearer.

This commit is contained in:
Jeremy Fincher 2004-01-19 20:27:04 +00:00
parent c96b0f6ca9
commit 6ff6fba09c

View File

@ -60,7 +60,11 @@ def getChannel(msg, args):
if conf.supybot.reply.requireChannelCommandsToBeSentInChannel(): if conf.supybot.reply.requireChannelCommandsToBeSentInChannel():
if args[0] != msg.args[0]: if args[0] != msg.args[0]:
s = 'Channel commands must be sent in the channel to which ' \ s = 'Channel commands must be sent in the channel to which ' \
'they apply.' 'they apply; if this is not the behavior you desire, ' \
'ask the bot\'s administrator to change the registry ' \
'variable ' \
'supybot.reply.requireChannelCommandsToBeSentInChannel ' \
'to False.'
raise callbacks.Error, s raise callbacks.Error, s
return args.pop(0) return args.pop(0)
elif ircutils.isChannel(msg.args[0]): elif ircutils.isChannel(msg.args[0]):