mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Let's make Heralds use standardSubstitute too.
This commit is contained in:
parent
fc71c53b0e
commit
aabd318710
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user