1
0
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:
Bram Matthys
2015-09-12 11:16:02 +02:00
parent af88bc7e19
commit 69a121278f
3 changed files with 23 additions and 44 deletions
+1 -5
View File
@@ -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))
{