mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed the last fix in Anonymous which broke the ability to query via say
This commit is contained in:
parent
8d05910df8
commit
bf761f52e4
@ -33,6 +33,7 @@ import supybot.utils as utils
|
||||
from supybot.commands import *
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
import supybot.callbacks as callbacks
|
||||
import supybot.ircutils as ircutils
|
||||
from supybot.i18n import PluginInternationalization, internationalizeDocstring
|
||||
_ = PluginInternationalization('Anonymous')
|
||||
|
||||
@ -85,8 +86,8 @@ class Anonymous(callbacks.Plugin):
|
||||
self._preCheck(irc, msg, target, 'say')
|
||||
self.log.info('Saying %q to %s due to %s.',
|
||||
text, target, msg.prefix)
|
||||
irc.reply(text, to=target)
|
||||
irc.noReply()
|
||||
irc.reply(text, to=target, prefixNick=False,
|
||||
private=not ircutils.isChannel(target))
|
||||
say = wrap(say, [first('nick', 'inChannel'), 'text'])
|
||||
|
||||
@internationalizeDocstring
|
||||
@ -99,7 +100,6 @@ class Anonymous(callbacks.Plugin):
|
||||
self.log.info('Performing %q in %s due to %s.',
|
||||
text, channel, msg.prefix)
|
||||
irc.reply(text, action=True, to=channel)
|
||||
irc.noReply()
|
||||
do = wrap(do, ['inChannel', 'text'])
|
||||
Anonymous = internationalizeDocstring(Anonymous)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user