Better messages during servers connections reset
This commit is contained in:
parent
e7adff2999
commit
f181e793d9
@ -2,6 +2,10 @@ $Id$
|
|||||||
|
|
||||||
v0.83.6 17-Dec-2005
|
v0.83.6 17-Dec-2005
|
||||||
|
|
||||||
|
mbtask:
|
||||||
|
Better messages during servers connections reset.
|
||||||
|
|
||||||
|
|
||||||
v0.83.5 16-Dec-2005 - 17-Dec-2005
|
v0.83.5 16-Dec-2005 - 17-Dec-2005
|
||||||
|
|
||||||
mbtask:
|
mbtask:
|
||||||
|
@ -679,6 +679,9 @@ void check_servers(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!inlist) {
|
if (!inlist) {
|
||||||
|
if (local_reset)
|
||||||
|
Syslog('+', "IBC: server %s connection reset", tnsl->server);
|
||||||
|
else
|
||||||
Syslog('+', "IBC: server %s configuration changed or removed", tnsl->server);
|
Syslog('+', "IBC: server %s configuration changed or removed", tnsl->server);
|
||||||
pthread_mutex_lock(&b_mutex);
|
pthread_mutex_lock(&b_mutex);
|
||||||
tnsl->remove = TRUE;
|
tnsl->remove = TRUE;
|
||||||
@ -698,8 +701,13 @@ void check_servers(void)
|
|||||||
Remove = TRUE;
|
Remove = TRUE;
|
||||||
Syslog('r', "IBC: Remove server %s", tnsl->server);
|
Syslog('r', "IBC: Remove server %s", tnsl->server);
|
||||||
if (tnsl->state == NCS_CONNECT) {
|
if (tnsl->state == NCS_CONNECT) {
|
||||||
|
if (local_reset) {
|
||||||
|
broadcast(tnsl->server, "SQUIT %s Reset connection\r\n", tnsl->server);
|
||||||
|
send_msg(tnsl, "SQUIT %s Your system connection is reset\r\n", tnsl->myname);
|
||||||
|
} else {
|
||||||
broadcast(tnsl->server, "SQUIT %s Removed from configuration\r\n", tnsl->server);
|
broadcast(tnsl->server, "SQUIT %s Removed from configuration\r\n", tnsl->server);
|
||||||
send_msg(tnsl, "SQUIT %s Your system is removed from configuration\r\n", tnsl->myname);
|
send_msg(tnsl, "SQUIT %s Your system is removed from configuration\r\n", tnsl->myname);
|
||||||
|
}
|
||||||
del_router(&servers, tnsl->server);
|
del_router(&servers, tnsl->server);
|
||||||
}
|
}
|
||||||
if (tnsl->socket != -1) {
|
if (tnsl->socket != -1) {
|
||||||
|
Reference in New Issue
Block a user