mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Made an error message a bit clearer.
This commit is contained in:
parent
c96b0f6ca9
commit
6ff6fba09c
@ -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]):
|
||||||
|
Loading…
Reference in New Issue
Block a user