mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Merge pull request #465 from clue-eq-None/AnonSayFix
Fixed the last fix in Anonymous which broke the ability to query via say
This commit is contained in:
commit
1bee83bc2e
@ -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