diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-07-19 19:39:42 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-07-19 19:39:42 +0000 |
commit | f9f4cf820f72feb9dbb807341702eec22609cd69 (patch) | |
tree | b113e9b0601d9ddd3ac85cc5e8644aef7bd52e56 /modules | |
parent | fe26f7e09ece76bd5ce74d7bcdb30228f7bba274 (diff) |
- m_challenge.c:m_challenge(): added sanity test on parv[1]
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@4281 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_challenge.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c index 0bffbc3..3bd4c79 100644 --- a/modules/m_challenge.c +++ b/modules/m_challenge.c @@ -76,6 +76,13 @@ m_challenge(struct Client *client_p, struct Client *source_p, char *challenge = NULL; struct MaskItem *conf = NULL; + if (EmptyString(parv[1])) + { + sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), + me.name, source_p->name, "CHALLENGE"); + return 0; + } + if (*parv[1] == '+') { /* Ignore it if we aren't expecting this... -A1kmm */ |