mirror of
https://github.com/anope/anope.git
synced 2026-07-07 19:03:14 +02:00
Send channel topics on initial burst, sync chanels after db load, and try to after unserializing persist on
This commit is contained in:
@@ -511,6 +511,8 @@ class CommandCSSetPersist : public Command
|
||||
ChannelStatus status(BotModes());
|
||||
ci->bi->Join(c, &status);
|
||||
}
|
||||
if (created)
|
||||
c->Sync();
|
||||
}
|
||||
|
||||
/* Set the perm mode */
|
||||
@@ -1165,14 +1167,15 @@ class CSSet : public Module
|
||||
if (ChanServ)
|
||||
ChanServ->Assign(NULL, ci);
|
||||
}
|
||||
if (!ci->bi)
|
||||
return;
|
||||
|
||||
if (!c->FindUser(ci->bi))
|
||||
if (ci->bi && !c->FindUser(ci->bi))
|
||||
{
|
||||
ChannelStatus status(BotModes());
|
||||
ci->bi->Join(c, &status);
|
||||
}
|
||||
|
||||
if (created)
|
||||
c->Sync();
|
||||
}
|
||||
} persist;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user