mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Merge pull request #930 from nyuszika7h/fix-anonymous-tell-error-msg
Anonymous: Better error when "tell" is disabled
This commit is contained in:
commit
99a947e2e9
@ -72,9 +72,8 @@ class Anonymous(callbacks.Plugin):
|
||||
irc.error(_('That channel has set its capabilities so as to '
|
||||
'disallow the use of this plugin.'), Raise=True)
|
||||
elif not self.registryValue('allowPrivateTarget'):
|
||||
irc.error(format(_('%q cannot be used to send private messages.'),
|
||||
action),
|
||||
Raise=True)
|
||||
irc.error(_('This command is disabled (supybot.plugins.Anonymous.'
|
||||
'allowPrivateTarget is False).'), Raise=True)
|
||||
|
||||
@internationalizeDocstring
|
||||
def say(self, irc, msg, args, target, text):
|
||||
|
Loading…
Reference in New Issue
Block a user