diff options
| author | Alexander Barton <alex@barton.de> | 2005-09-01 10:51:24 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2005-09-01 10:51:24 +0000 |
| commit | a5b5a6a99a3be2c982e0b4583add7b8946e43589 (patch) | |
| tree | f9a2f41f0982aa9e78efd7d624d9b7ead81ec384 | |
| parent | c65343e719b3fda2fa4d80284e1527437fb5f673 (diff) | |
| download | ngircd-a5b5a6a99a3be2c982e0b4583add7b8946e43589.tar.gz ngircd-a5b5a6a99a3be2c982e0b4583add7b8946e43589.zip | |
Make PONG handler compatible with ngIRCd <= 0.9 ("make it more relaxed").
| -rw-r--r-- | src/ngircd/irc-login.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ngircd/irc-login.c b/src/ngircd/irc-login.c index 3dcab038..6e733586 100644 --- a/src/ngircd/irc-login.c +++ b/src/ngircd/irc-login.c @@ -14,7 +14,7 @@ #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 <assert.h> @@ -520,9 +520,10 @@ IRC_PONG(CLIENT *Client, REQUEST *Req) return IRC_WriteStrClient(Client, ERR_NOSUCHSERVER_MSG, 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. */ - from = Client_Search(Req->prefix); if (!from) return IRC_WriteStrClient(Client, ERR_NOSUCHSERVER_MSG, |