diff options
author | Adam <Adam@anope.org> | 2011-03-11 17:09:49 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-11 17:09:49 -0500 |
commit | 46a3afadb9fbb78e96222cf7d4e494dbcbf66c44 (patch) | |
tree | 26a7eeba0690b203b641303398139c836d68a4db /modules/protocol/plexus.cpp | |
parent | 1b2f3bf36964dd08c1bf6e803a36c03d6b7c492e (diff) |
Fixed validating users on all server syncs
Diffstat (limited to 'modules/protocol/plexus.cpp')
-rw-r--r-- | modules/protocol/plexus.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index d1062182f..a538479db 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -554,15 +554,7 @@ bool event_eob(const Anope::string &source, const std::vector<Anope::string> &pa { Server *s = Server::Find(source); if (s) - { s->Sync(true); - for (patricia_tree<User *, ci::ci_char_traits>::iterator it(UserListByNick); it.next();) - { - User *u = *it; - if (u->server == s && !u->IsIdentified()) - validate_user(u); - } - } return true; } @@ -644,6 +636,19 @@ class ProtoPlexus : public Module pmodule_ircd_message(&this->ircd_message); this->AddModes(); + + Implementation i[] = { I_OnServerSync }; + ModuleManager::Attach(i, this, 1); + } + + void OnServerSync(Server *s) + { + for (patricia_tree<User *, ci::ci_char_traits>::iterator it(UserListByNick); it.next();) + { + User *u = *it; + if (u->server == s && !u->IsIdentified()) + validate_user(u); + } } }; |