summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 11:39:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-06 11:39:29 +0000
commit964e46857e87fadbcde15e85b5f3698f540116fa (patch)
tree4ca3938087998edb30ede6684f74fb6043b294a0 /src
parent49c27deda7e52c4b4874bb4984b7f2934fd16d12 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp4
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);