1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-01 23:26:37 +02:00

- Fix issue with CAP & NOSPOOF. Patch from nenolod (#4077).

This commit is contained in:
Bram Matthys
2012-01-22 16:01:00 +01:00
parent d530dbd43d
commit 2df00337d4
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ Debug((DEBUG_NOTICE, "NOSPOOF"));
sendto_one(sptr, ":IRC!IRC@%s PRIVMSG %s :\1VERSION\1",
me.name, sptr->name);
if (sptr->user && sptr->name[0])
if (sptr->user && sptr->name[0] && !CHECKPROTO(sptr, PROTO_CLICAP))
return register_user(cptr, sptr, sptr->name,
sptr->user->username, NULL, NULL, NULL);
return 0;
+3 -4
View File
@@ -203,10 +203,9 @@ DLLFUNC CMD_FUNC(m_user)
strlcpy(user->svid, sstamp, sizeof(user->svid));
strlcpy(sptr->info, realname, sizeof(sptr->info));
if (sptr->name[0] &&
(IsServer(cptr) ? 1 : IsNotSpoof(sptr)) &&
(!MyConnect(sptr) || (MyConnect(sptr) && !CHECKPROTO(sptr, PROTO_CLICAP)))
)
if (*sptr->name &&
(IsServer(cptr) || (IsNotSpoof(sptr) && !CHECKPROTO(sptr, PROTO_CLICAP)))
)
/* NICK and no-spoof already received, now we have USER... */
{
if (USE_BAN_VERSION && MyConnect(sptr))