From e67abc1fb3e155a581b9903ce23112ed4873870e Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 25 Mar 2014 16:12:31 +0000 Subject: - Backported -r3209 [m_user.c:mr_user(): optimize in case parv[4] is empty] git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3210 82007160-df01-0410-b94d-b575c5fd34c7 --- modules/m_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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 */ -- cgit