mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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
This commit is contained in:
parent
f13826a95e
commit
06ef259ccf
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user