aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-02-15 19:23:01 +0000
committerGravatar brain2006-02-15 19:23:01 +0000
commitfeaf72ecb48470114fbe3f3058b5f4b9622b88a5 (patch)
tree838377c1155b6fdb00460d6e52ffcb4bdf17f053 /src/channels.cpp
parentNow has no strchr() at all. (diff)
downloadinspircd++-feaf72ecb48470114fbe3f3058b5f4b9622b88a5.tar.gz
inspircd++-feaf72ecb48470114fbe3f3058b5f4b9622b88a5.tar.bz2
inspircd++-feaf72ecb48470114fbe3f3058b5f4b9622b88a5.zip
Removed a whole lot of strchr's looking for mode +o where we can do if *user->oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index ec1be82cd..8e5917d85 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -427,7 +427,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
user->chans.push_back(a);
return c;
}
- else if (strchr(user->modes,'o'))
+ else if (*user->oper)
{
/* Oper allows extension up to the OPERMAXCHANS value */
if (user->chans.size() < OPERMAXCHANS)