summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-01 18:49:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-01 18:49:01 +0000
commit993cff8f399abc6868813b259df88701ad35c6c2 (patch)
tree4e6ef551620ee1722444371a87b0d094499fb9e9 /src
parentb117a1ec84b813cec22e9c6a45434ded3efb8d9c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 77642ba04..63edc153e 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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);
}
}