From 827469600e8cf98fea7aec09ceaa77a097300b72 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 2 Jan 2013 13:59:33 -0500 Subject: Move nickserv validate stuff to an event in nickserv.cpp --- modules/protocol/ratbox.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'modules/protocol/ratbox.cpp') diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 52795485f..9e2155cf4 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -171,9 +171,7 @@ struct IRCDMessageUID : IRCDMessage void Run(MessageSource &source, const std::vector ¶ms) anope_override { /* Source is always the server */ - User *user = new User(params[0], params[4], params[5], "", params[6], source.GetServer(), params[8], params[2].is_pos_number_only() ? convertTo(params[2]) : 0, params[3], params[7]); - if (user && user->server->IsSynced() && NickServService) - NickServService->Validate(user); + new User(params[0], params[4], params[5], "", params[6], source.GetServer(), params[8], params[2].is_pos_number_only() ? convertTo(params[2]) : 0, params[3], params[7]); } }; @@ -255,26 +253,12 @@ class ProtoRatbox : public Module throw ModuleException("No protocol interface for hybrid"); this->AddModes(); - - Implementation i[] = { I_OnServerSync }; - ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } ~ProtoRatbox() { ModuleManager::UnloadModule(m_hybrid, NULL); } - - 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(ProtoRatbox) -- cgit