From a575032e0acabd43f978d16479683c897993130f Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Jan 2009 14:05:33 +0000 Subject: Remove unneccessary safety loop git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10993 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nationalchars.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/modules/m_nationalchars.cpp b/src/modules/m_nationalchars.cpp index bf214f79e..1533f4d00 100755 --- a/src/modules/m_nationalchars.cpp +++ b/src/modules/m_nationalchars.cpp @@ -221,16 +221,12 @@ class ModuleNationalChars : public Module if (!forcequit) return; - std::vector purge; for (std::vector::iterator iter = ServerInstance->Users->local_users.begin(); iter != ServerInstance->Users->local_users.end(); ++iter) { /* Fix by Brain: Dont quit UID users */ - if (!isdigit((*iter)->nick[0]) && !ServerInstance->IsNick((*iter)->nick.c_str(), ServerInstance->Config->Limits.NickMax)) - purge.push_back(*iter); - } - for (std::vector::iterator iter = purge.begin();iter!=purge.end();++iter) - { - ServerInstance->Users->QuitUser((*iter), message); + User* n = *iter; + if (!isdigit(n->nick[0]) && !ServerInstance->IsNick(n->nick.c_str(), ServerInstance->Config->Limits.NickMax)) + ServerInstance->Users->QuitUser(n, message); } } -- cgit v1.2.3