summaryrefslogtreecommitdiff
path: root/src/modules/m_nationalchars.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-23 14:05:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-23 14:05:33 +0000
commita575032e0acabd43f978d16479683c897993130f (patch)
tree2ab89e8f632f05b2eb057b5ff85dc6680bfb5dc6 /src/modules/m_nationalchars.cpp
parentf74980ad05d8107d358efef86fec4fe6f20f85bd (diff)
Remove unneccessary safety loop
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10993 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nationalchars.cpp')
-rwxr-xr-xsrc/modules/m_nationalchars.cpp10
1 files 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<User*> purge;
for (std::vector<User*>::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<User*>::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);
}
}