mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 05:43:12 +02:00
De-duplicate code. Make sendto_serv_butone_nickcmd() use sendto_one_nickcmd(). Fixes bug reported by Adam.
This commit is contained in:
@@ -1517,11 +1517,7 @@ int _register_user(aClient *cptr, aClient *sptr, char *nick, char *username, cha
|
||||
send_umode(NULL, sptr, 0, SEND_UMODES|UMODE_SERVNOTICE, buf);
|
||||
|
||||
/* NICKv2 Servers ! */
|
||||
sendto_serv_butone_nickcmd(cptr, sptr, nick,
|
||||
sptr->hopcount + 1, sptr->lastnick, user->username, user->realhost,
|
||||
user->server, user->svid, sptr->info,
|
||||
(*buf == '\0' ? "+" : buf),
|
||||
sptr->umodes & UMODE_SETHOST ? sptr->user->virthost : NULL);
|
||||
sendto_serv_butone_nickcmd(cptr, sptr, (*buf == '\0' ? "+" : buf));
|
||||
|
||||
if (MyConnect(sptr))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user