From 964e46857e87fadbcde15e85b5f3698f540116fa Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Dec 2005 11:39:29 +0000 Subject: Fixed RFC-non-complaince of TOPIC and NAMES with +s channel (As reported by Ghost) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2215 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3