diff options
-rw-r--r-- | src/commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index efc2f1cbc..17f2c632e 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -476,7 +476,7 @@ void handle_topic(char **parameters, int pcnt, userrec *user) { if (((Ptr) && (!has_channel(user,Ptr))) && (Ptr->binarymodes & CM_SECRET)) { - WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, Ptr->name); + WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, Ptr->name); return; } if (Ptr->topicset) @@ -563,7 +563,7 @@ void handle_names(char **parameters, int pcnt, userrec *user) { if (((c) && (!has_channel(user,c))) && (c->binarymodes & CM_SECRET)) { - WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, c->name); + WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, c->name); return; } userlist(user,c); |