1
0
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:
Adam
2013-12-02 02:01:39 -05:00
parent b5966cf99e
commit 96af354ad5
3 changed files with 11 additions and 3 deletions
+6 -3
View File
@@ -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;