summaryrefslogtreecommitdiff
path: root/src/modules/m_remove.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 22:59:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-19 22:59:30 +0000
commit06ef259ccf3acf723afd81f4a00387b58d0e78af (patch)
treefb68eacad5022a554384230bc60058bc4d23c03c /src/modules/m_remove.cpp
parentf13826a95e9852ddbde748997970bc65d9bcb175 (diff)
Trivial: 401 numeric for m_remove when nick or channel cannot be found
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3742 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_remove.cpp')
-rw-r--r--src/modules/m_remove.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp
index 242aaefb3..5ec868554 100644
--- a/src/modules/m_remove.cpp
+++ b/src/modules/m_remove.cpp
@@ -63,7 +63,10 @@ class cmd_remove : public command_t
/* Fix by brain - someone needs to learn to validate their input! */
if (!target || !channel)
+ {
+ WriteServ(user->fd,"401 %s %s :No such nick/channel",user->nick, !target ? parameters[0] : parameters[1]);
return;
+ }
/* And see if the person calling the command has access to use it on the channel */
std::string privs = Srv->ChanMode(user, channel);