mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Don't send JOIN on connection if there is no channels to join.
This commit is contained in:
parent
8496cc2e6a
commit
21144f7c9c
@ -230,7 +230,9 @@ class Owner(callbacks.Plugin):
|
|||||||
world.starting = False
|
world.starting = False
|
||||||
|
|
||||||
def do376(self, irc, msg):
|
def do376(self, irc, msg):
|
||||||
irc.queueMsg(conf.supybot.networks.get(irc.network).channels.joins())
|
msg = conf.supybot.networks.get(irc.network).channels.joins()
|
||||||
|
if msg:
|
||||||
|
irc.queueMsg(msg)
|
||||||
do422 = do377 = do376
|
do422 = do377 = do376
|
||||||
|
|
||||||
def setFloodQueueTimeout(self, *args, **kwargs):
|
def setFloodQueueTimeout(self, *args, **kwargs):
|
||||||
|
@ -289,7 +289,11 @@ class SpaceSeparatedSetOfChannels(registry.SpaceSeparatedListOf):
|
|||||||
channels_with_key.append(channel)
|
channels_with_key.append(channel)
|
||||||
else:
|
else:
|
||||||
channels.append(channel)
|
channels.append(channel)
|
||||||
return ircmsgs.joins(channels_with_key + channels, keys)
|
if channels_with_key or channels:
|
||||||
|
return ircmsgs.joins(channels_with_key + channels, keys)
|
||||||
|
else:
|
||||||
|
# Let's be explicit about it
|
||||||
|
return None
|
||||||
|
|
||||||
def registerNetwork(name, password='', ssl=False, sasl_username='',
|
def registerNetwork(name, password='', ssl=False, sasl_username='',
|
||||||
sasl_password=''):
|
sasl_password=''):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user