summaryrefslogtreecommitdiff
path: root/src/cmd_names.cpp
diff options
context:
space:
mode:
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 fe61c4dea..cc6566cca 100644
--- a/src/cmd_names.cpp
+++ b/src/cmd_names.cpp
@@ -38,7 +38,7 @@ CmdResult cmd_names::Handle (const char** parameters, int pcnt, userrec *user)
c = ServerInstance->FindChan(parameters[0]);
if (c)
{
- if ((c->modes[CM_SECRET]) && (!c->HasUser(user)))
+ if ((c->IsModeSet('s')) && (!c->HasUser(user)))
{
user->WriteServ("401 %s %s :No such nick/channel",user->nick, c->name);
return CMD_FAILURE;