summaryrefslogtreecommitdiff
path: root/src/message.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 13:21:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 13:21:35 +0000
commitc330b24501fc56516fef098428889a0a526e706a (patch)
tree83a64774409c8c6808dd4c6a2587ca89229e9e97 /src/message.cpp
parent68da120812b1e593c76ea75d0d591f47b6a4f402 (diff)
Added userrec::modebits - fast way of checking if user has +swi rather than an icky strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 8614acf0e..042901503 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -397,7 +397,7 @@ std::string chlist(userrec *user,userrec* source)
{
return lst;
}
- bool userinvisible = (strchr(user->modes,'i'));
+ bool userinvisible = (user->modebits & UM_INVISIBLE);
for (std::vector<ucrec*>::const_iterator i = user->chans.begin(); i != user->chans.end(); i++)
{
if ((((ucrec*)(*i))->channel != NULL) && (((ucrec*)(*i))->channel->name))