1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 23:43:13 +02:00

- Don't allow remote pongs if unregistered.

This commit is contained in:
Bram Matthys
2003-11-01 13:58:44 +00:00
parent 79bc20a994
commit e52956fd77
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -2535,3 +2535,4 @@ seen. gmtime warning still there
fixed things (like kick a +h if you are +h) because older servers will still block
the kick. You will receive a 'You cannot kick channel' message from every older
server so you'll at least be notified ;p.
- Don't allow remote pongs if unregistered.
+6
View File
@@ -224,6 +224,12 @@ DLLFUNC int m_pong(aClient *cptr, aClient *sptr, int parc, char *parv[])
if (!BadPtr(destination) && mycmp(destination, me.name) != 0)
{
/* No remote pongs if not registered */
if (MyConnect(sptr) && IsUnknown(sptr))
{
sendto_one(sptr, err_str(ERR_NOSUCHSERVER), me.name, parv[0], destination);
return 0;
}
if ((acptr = find_client(destination, NULL)) ||
(acptr = find_server_quick(destination)))
{