Permalink
Browse files

Fixed the last fix in Anonymous which broke the ability to query via say

  • Loading branch information...
1 parent 8d05910 commit bf761f52e4dab3f2f7a3d69560302319f4338613 George Miller committed Apr 22, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/Anonymous/plugin.py
View
6 plugins/Anonymous/plugin.py
@@ -33,6 +33,7 @@
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 @@ def say(self, irc, msg, args, target, text):
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 @@ def do(self, irc, msg, args, channel, text):
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)

0 comments on commit bf761f5

Please sign in to comment.