mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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 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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user