summaryrefslogtreecommitdiff
path: root/modules/m_challenge.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_challenge.c')
-rw-r--r--modules/m_challenge.c7
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 */