summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-03 17:24:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-03 17:24:05 +0000
commit2257e3266906fd3ec48b9290ed00d6ef3b897482 (patch)
treeda320c4ea84647e1143fee9be526c4f0a9e65419 /src/mode.cpp
parent9f41b3b46591f6be8dd0d5b6fd2ca14c407f8fc4 (diff)
Fix to bug #36 reported by Yeti
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@962 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index eaee04f75..22e9816b3 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1290,6 +1290,11 @@ void handle_mode(char **parameters, int pcnt, userrec *user)
return;
}
}
+ if ((Ptr) && (!has_channel(user,Ptr)))
+ {
+ WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, Ptr->name);
+ return;
+ }
process_modes(parameters,user,Ptr,cstatus(user,Ptr),pcnt,false,false,false);
}