Remove leftover piece of code from another fix

This commit is contained in:
Griatch 2023-08-06 23:26:48 +02:00
parent 34021ad388
commit f12897a072

View file

@ -854,13 +854,6 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
if ip:
account.db.creator_ip = ip
# join the new account to the public channels
pchannel = ChannelDB.objects.get_channel(settings.DEFAULT_CHANNELS[0]["key"])
if not pchannel or not pchannel.connect(account):
string = "New account '{account.key}' could not connect to public channel!"
errors.append(string)
logger.log_err(string)
# join the new account to the public channels
for chan_info in settings.DEFAULT_CHANNELS:
if chankey := chan_info.get("key"):