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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user