mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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
|
||||
|
||||
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
|
||||
|
||||
def setFloodQueueTimeout(self, *args, **kwargs):
|
||||
|
@ -289,7 +289,11 @@ class SpaceSeparatedSetOfChannels(registry.SpaceSeparatedListOf):
|
||||
channels_with_key.append(channel)
|
||||
else:
|
||||
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='',
|
||||
sasl_password=''):
|
||||
|
Loading…
Reference in New Issue
Block a user