1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 21:53: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;
+3
View File
@@ -477,6 +477,9 @@ void Anope::Init(int ac, char **av)
static_cast<void>(MOD_RESULT);
Log() << "Databases loaded";
for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it)
it->second->Sync();
Serialize::CheckTypes();
}
+2
View File
@@ -123,6 +123,8 @@ Server::Server(Server *up, const Anope::string &sname, unsigned shops, const Ano
continue;
ModeManager::StackerAdd(c->ci->WhoSends(), c, cm, true, it2->second);
}
IRCD->SendTopic(c->ci->WhoSends(), c);
}
}
}