mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-06-17 20:27:23 +02:00
Anonymous: Better error when "tell" is disabled
This commit is contained in:
parent
1e8d51ac6d
commit
913cd58b8e
@ -72,9 +72,8 @@ class Anonymous(callbacks.Plugin):
|
|||||||
irc.error(_('That channel has set its capabilities so as to '
|
irc.error(_('That channel has set its capabilities so as to '
|
||||||
'disallow the use of this plugin.'), Raise=True)
|
'disallow the use of this plugin.'), Raise=True)
|
||||||
elif not self.registryValue('allowPrivateTarget'):
|
elif not self.registryValue('allowPrivateTarget'):
|
||||||
irc.error(format(_('%q cannot be used to send private messages.'),
|
irc.error(_('This command is disabled (supybot.plugins.Anonymous.'
|
||||||
action),
|
'allowPrivateTarget is False).'), Raise=True)
|
||||||
Raise=True)
|
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def say(self, irc, msg, args, target, text):
|
def say(self, irc, msg, args, target, text):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user