Anonymous: Fix use of pipes.

This commit is contained in:
Valentin Lorentz 2013-04-22 17:58:32 +00:00
parent 96fae12fd2
commit 8701002ff9

View File

@ -85,7 +85,7 @@ class Anonymous(callbacks.Plugin):
self._preCheck(irc, msg, target, 'say') self._preCheck(irc, msg, target, 'say')
self.log.info('Saying %q to %s due to %s.', self.log.info('Saying %q to %s due to %s.',
text, target, msg.prefix) text, target, msg.prefix)
irc.queueMsg(ircmsgs.privmsg(target, text)) irc.reply(text, to=target)
irc.noReply() irc.noReply()
say = wrap(say, [first('nick', 'inChannel'), 'text']) say = wrap(say, [first('nick', 'inChannel'), 'text'])
@ -98,7 +98,7 @@ class Anonymous(callbacks.Plugin):
self._preCheck(irc, msg, channel, 'do') self._preCheck(irc, msg, channel, 'do')
self.log.info('Performing %q in %s due to %s.', self.log.info('Performing %q in %s due to %s.',
text, channel, msg.prefix) text, channel, msg.prefix)
irc.queueMsg(ircmsgs.action(channel, text)) irc.reply(text, action=True, to=channel)
irc.noReply() irc.noReply()
do = wrap(do, ['inChannel', 'text']) do = wrap(do, ['inChannel', 'text'])
Anonymous = internationalizeDocstring(Anonymous) Anonymous = internationalizeDocstring(Anonymous)