Let's make Heralds use standardSubstitute too.

This commit is contained in:
Jeremy Fincher 2004-02-26 16:45:38 +00:00
parent fc71c53b0e
commit aabd318710
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
* Updated the Herald plugin to use the standard substitute until
we get it updated to use commands as heralds instead of plain
strings.
* Updated echo to use the standard substitute on its reply. * Updated echo to use the standard substitute on its reply.
* Updated Network.whois so that it can now retrieve * Updated Network.whois so that it can now retrieve

View File

@ -45,6 +45,7 @@ import utils
import world import world
import ircdb import ircdb
import ircmsgs import ircmsgs
import plugins
import ircutils import ircutils
import privmsgs import privmsgs
import registry import registry
@ -104,6 +105,7 @@ class Herald(callbacks.Privmsg):
if now - self.lastParts[channel, id] < i: if now - self.lastParts[channel, id] < i:
return return
self.lastHerald[channel, id] = now self.lastHerald[channel, id] = now
herald = plugins.standardSubstitute(irc, msg, herald)
irc.queueMsg(ircmsgs.privmsg(channel, herald)) irc.queueMsg(ircmsgs.privmsg(channel, herald))
def doPart(self, irc, msg): def doPart(self, irc, msg):