mirror of
https://github.com/anope/anope.git
synced 2026-07-03 18:23:14 +02:00
Dont load mlock from the database until after Anope is connected, it doesnt know all of the available modes until then
This commit is contained in:
@@ -688,12 +688,10 @@ int anope_event_squit(const char *source, int ac, const char **av)
|
||||
int anope_event_rsquit(const char *source, int ac, const char **av)
|
||||
{
|
||||
/* On InspIRCd we must send a SQUIT when we recieve RSQUIT for a server we have juped */
|
||||
Server *s = findserver(servlist, av[0]);
|
||||
if (!s)
|
||||
s = findserver_uid(servlist, av[0]);
|
||||
Server *s = Server::Find(av[0]);
|
||||
if (s && s->HasFlag(SERVER_JUPED))
|
||||
{
|
||||
send_cmd(TS6SID, "SQUIT %s :%s", s->suid, ac > 1 ? av[1] : "");
|
||||
send_cmd(TS6SID, "SQUIT %s :%s", s->GetSID().c_str(), ac > 1 ? av[1] : "");
|
||||
}
|
||||
|
||||
do_squit(source, ac, av);
|
||||
|
||||
Reference in New Issue
Block a user