diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-03-25 16:12:31 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-03-25 16:12:31 +0000 |
commit | e67abc1fb3e155a581b9903ce23112ed4873870e (patch) | |
tree | a21de732eef5b59888776e07a6cc922533e0ff1e /modules | |
parent | 0cd9856c13bf057ac2aba0bb8d8770d2f59344f7 (diff) |
- 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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_user.c | 6 |
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 */ |