From 5fbc359315ee3989cdfd4158036e3c91e086d7a0 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 9 Dec 2005 19:25:48 +0000 Subject: [PATCH] Added duplicate remote check --- ChangeLog | 1 + mbtask/taskibc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 825552e3..13255dfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ v0.83.4 04-Dec-2005 mbtask: Experimental code to recover from a half dead chatlink. + Added some protection against looped configuration. v0.83.3 03-Dec-2005 - 04-Dec-2005 diff --git a/mbtask/taskibc.c b/mbtask/taskibc.c index f1a28bea..5a301aea 100644 --- a/mbtask/taskibc.c +++ b/mbtask/taskibc.c @@ -638,7 +638,7 @@ void check_servers(void) } } for (srv = servers; srv; srv = srv->next) { - if (strcmp(srv->server, ibcsrv.server) == 0) { + if ((strcmp(srv->server, ibcsrv.server) == 0) && (strcmp(srv->router, ibcsrv.server))) { inlist = TRUE; Syslog('+', "IBC: can't add new configured server %s: already connected via %s", ibcsrv.server, srv->router);