summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/m_user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/m_user.c b/modules/m_user.c
index 5ca7f0f..52c9447 100644
--- a/modules/m_user.c
+++ b/modules/m_user.c
@@ -87,9 +87,6 @@ mr_user(struct Client *client_p, struct Client *source_p,
return 0;
}
- if ((p = strchr(parv[1], '@')) != NULL)
- *p = '\0';
-
if (EmptyString(parv[4]))
{
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), me.name,
@@ -97,6 +94,9 @@ mr_user(struct Client *client_p, struct Client *source_p,
return 0;
}
+ if ((p = strchr(parv[1], '@')))
+ *p = '\0';
+
do_local_user(source_p,
parv[1], /* username */
parv[2], /* host */