From c330b24501fc56516fef098428889a0a526e706a Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Mar 2006 13:21:35 +0000 Subject: 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 --- src/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/message.cpp') 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::const_iterator i = user->chans.begin(); i != user->chans.end(); i++) { if ((((ucrec*)(*i))->channel != NULL) && (((ucrec*)(*i))->channel->name)) -- cgit v1.3.1-10-gc9f91