diff options
| author | Adam <Adam@anope.org> | 2013-01-02 13:59:33 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-01-02 13:59:33 -0500 |
| commit | 827469600e8cf98fea7aec09ceaa77a097300b72 (patch) | |
| tree | 6c957be4e9f2a0c8c6eddf2537b8553f1f6ffdbb /modules/protocol/inspircd12.cpp | |
| parent | bf718e869892bf418051d0140d7628c69d4ee3c9 (diff) | |
Move nickserv validate stuff to an event in nickserv.cpp
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 89540b6f4..963b75473 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -1161,9 +1161,7 @@ struct IRCDMessageUID : IRCDMessage for (unsigned i = 9; i < params.size() - 1; ++i) modes += " " + params[i]; - User *u = new User(params[2], params[5], params[3], params[4], params[6], source.GetServer(), params[params.size() - 1], ts, modes, params[0]); - if (u->server->IsSynced() && NickServService) - NickServService->Validate(u); + new User(params[2], params[5], params[3], params[4], params[6], source.GetServer(), params[params.size() - 1], ts, modes, params[0]); } }; @@ -1221,7 +1219,7 @@ class ProtoInspIRCd : public Module { this->SetAuthor("Anope"); - Implementation i[] = { I_OnUserNickChange, I_OnServerSync }; + Implementation i[] = { I_OnUserNickChange }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); Servers::Capab.insert("NOQUIT"); @@ -1244,17 +1242,6 @@ class ProtoInspIRCd : public Module */ u->RemoveMode(NickServ, UMODE_REGISTERED); } - - void OnServerSync(Server *s) anope_override - { - if (NickServService) - for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) - { - User *u = it->second; - if (u->server == s && !u->IsIdentified()) - NickServService->Validate(u); - } - } }; MODULE_INIT(ProtoInspIRCd) |
