diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-19 16:59:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:03:44 -0400 |
commit | 3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (patch) | |
tree | 93cb603a579699b51b74a450db092ab8db595e1f /src/protocol | |
parent | 0358ae062b771a3e018ef147f607eae7d0bd8647 (diff) |
Dont load mlock from the database until after Anope is connected, it doesnt know all of the available modes until then
Diffstat (limited to 'src/protocol')
-rw-r--r-- | src/protocol/inspircd12.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index e125f45d0..d326b6820 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -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); |