Delete users from a server when server disconnects

This commit is contained in:
Michiel Broek 2006-05-27 21:01:32 +00:00
parent 0b722c0698
commit ee291a315d
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ v0.83.20 27-May-2006
Changed welcome message. Changed welcome message.
Registration info for the clients was send double coded. Registration info for the clients was send double coded.
Delete users from channel when a server disconnects. Delete users from channel when a server disconnects.
Delete users from a server when server disconnects.
v0.83.19 23-May-2006 - 27-May-2006 v0.83.19 23-May-2006 - 27-May-2006

View File

@ -461,6 +461,7 @@ void del_server(char *name)
for (i = 0; i < MAXIBC_SRV; i++) { for (i = 0; i < MAXIBC_SRV; i++) {
if (strcmp(srv_list[i].server, name) == 0) { if (strcmp(srv_list[i].server, name) == 0) {
Syslog('r', "IBC: del_server(%s), slot %d", name, i); Syslog('r', "IBC: del_server(%s), slot %d", name, i);
del_user(srv_list[i].server, NULL);
memset(&srv_list[i], 0, sizeof(_srv_list)); memset(&srv_list[i], 0, sizeof(_srv_list));
srvchg = TRUE; srvchg = TRUE;
} }