summaryrefslogtreecommitdiff
path: root/src/cmd_names.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-03-12 14:26:15 +0000
committerGravatar brain2006-03-12 14:26:15 +0000
commit988568f3d1cc2247fa3adbadd8daa0ee175fcb1d (patch)
tree00623416ea844e1fce5343f1073bb6dbaa75511b /src/cmd_names.cpp
parentRemoved chanrec::binarymodes - insp wont compile atm do not use :p (diff)
*NEEDS TESTING* changed binarymodes to use the custom_modes entries
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_names.cpp')
-rw-r--r--src/cmd_names.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_names.cpp b/src/cmd_names.cpp
index 43797cbeb..2eb046eac 100644
--- a/src/cmd_names.cpp
+++ b/src/cmd_names.cpp
@@ -76,7 +76,7 @@ void cmd_names::Handle (char **parameters, int pcnt, userrec *user)
c = FindChan(parameters[0]);
if (c)
{
- if ((c->binarymodes & CM_SECRET) && (!c->HasUser(user)))
+ if ((c->custom_modes[CM_SECRET]) && (!c->HasUser(user)))
{
WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, c->name);
return;