From aabd318710558bd1cf985145558a8aa123057ca0 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 26 Feb 2004 16:45:38 +0000 Subject: [PATCH] Let's make Heralds use standardSubstitute too. --- ChangeLog | 4 ++++ plugins/Herald.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index bfe635d1b..71919fb49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 Network.whois so that it can now retrieve diff --git a/plugins/Herald.py b/plugins/Herald.py index f9cc01d3e..b58d5394c 100644 --- a/plugins/Herald.py +++ b/plugins/Herald.py @@ -45,6 +45,7 @@ import utils import world import ircdb import ircmsgs +import plugins import ircutils import privmsgs import registry @@ -104,6 +105,7 @@ class Herald(callbacks.Privmsg): if now - self.lastParts[channel, id] < i: return self.lastHerald[channel, id] = now + herald = plugins.standardSubstitute(irc, msg, herald) irc.queueMsg(ircmsgs.privmsg(channel, herald)) def doPart(self, irc, msg):