mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
An attepmt to be reloadable.
This commit is contained in:
parent
ea1ddf1880
commit
7cb54def63
@ -147,6 +147,12 @@ class Relay(callbacks.Privmsg):
|
|||||||
self.ircstates[irc] = irclib.IrcState()
|
self.ircstates[irc] = irclib.IrcState()
|
||||||
if irc not in self.lastmsg:
|
if irc not in self.lastmsg:
|
||||||
self.lastmsg[irc] = ircmsgs.ping('this is just a fake message')
|
self.lastmsg[irc] = ircmsgs.ping('this is just a fake message')
|
||||||
|
if irc.afterConnect:
|
||||||
|
# We've probably been reloaded. Let's send some messages to get
|
||||||
|
# our IrcState objects up to current.
|
||||||
|
for channel in self.registryValue('channels'):
|
||||||
|
irc.queueMsg(ircmsgs.who(channel))
|
||||||
|
irc.queueMsg(ircmsgs.names(channel))
|
||||||
|
|
||||||
def join(self, irc, msg, args):
|
def join(self, irc, msg, args):
|
||||||
"""<channel>
|
"""<channel>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user