mirror of
https://github.com/osmarks/ngircd.git
synced 2025-11-06 00:42:59 +00:00
Make PONG handler compatible with ngIRCd <= 0.9 ("make it more relaxed").
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "portab.h"
|
#include "portab.h"
|
||||||
|
|
||||||
static char UNUSED id[] = "$Id: irc-login.c,v 1.48 2005/08/28 11:40:13 alex Exp $";
|
static char UNUSED id[] = "$Id: irc-login.c,v 1.49 2005/09/01 10:51:24 alex Exp $";
|
||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -520,9 +520,10 @@ IRC_PONG(CLIENT *Client, REQUEST *Req)
|
|||||||
return IRC_WriteStrClient(Client, ERR_NOSUCHSERVER_MSG,
|
return IRC_WriteStrClient(Client, ERR_NOSUCHSERVER_MSG,
|
||||||
Client_ID(Client), Req->argv[0]);
|
Client_ID(Client), Req->argv[0]);
|
||||||
|
|
||||||
if (target != Client_ThisServer()) {
|
from = Client_Search(Req->prefix);
|
||||||
|
|
||||||
|
if (target != Client_ThisServer() && target != from) {
|
||||||
/* Ok, we have to forward the message. */
|
/* Ok, we have to forward the message. */
|
||||||
from = Client_Search(Req->prefix);
|
|
||||||
if (!from)
|
if (!from)
|
||||||
return IRC_WriteStrClient(Client,
|
return IRC_WriteStrClient(Client,
|
||||||
ERR_NOSUCHSERVER_MSG,
|
ERR_NOSUCHSERVER_MSG,
|
||||||
|
|||||||
Reference in New Issue
Block a user