We can make one saving in userrec::WriteWallOps though - we are checking IS_LOCAL inside the loop, we've had a seprate local only user list for god knows how long, we know the users in it are local.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7199 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-06-01 18:49:01 +00:00
parent b117a1ec84
commit 993cff8f39

View File

@ -1624,7 +1624,7 @@ void userrec::WriteWallOps(const std::string &text)
for (std::vector<userrec*>::const_iterator i = ServerInstance->local_users.begin(); i != ServerInstance->local_users.end(); i++)
{
userrec* t = *i;
if ((IS_LOCAL(t)) && (t->modes[UM_WALLOPS]))
if (t->modes[UM_WALLOPS])
this->WriteTo(t,wallop);
}
}