maybe fixed a segfault when servers de-link

This commit is contained in:
fishwaldo 2002-09-17 11:23:58 +00:00
parent f399cdcf81
commit b03bef5f8e
2 changed files with 5 additions and 4 deletions

View file

@ -12,6 +12,7 @@ Symbols are:
(F) - ./configure updated with --enable-debug and compile flags updated.
(F) - Moved m_opme m_ojoin and m_clearchan to standard modules (and fixed them up)
(F) - added svsjoin and svspart (based on m_force.c contrib module)
(F) - Maybe fixed a segfault when a server gets disconnected
* NeoIRCd Version 0.9.1 - 12th August, 2002 - Fish
(F) - Added +S UserMode. For Services. Allow them to override anything

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: s_bsd.c,v 1.5 2002/09/13 16:30:05 fishwaldo Exp $
* $Id: s_bsd.c,v 1.6 2002/09/17 11:23:58 fishwaldo Exp $
*/
#include "stdinc.h"
@ -436,12 +436,12 @@ void error_exit_client(struct Client* client_p, int error)
if (error == 0)
{
/* Admins get the real IP */
sendto_realops_flags(FLAGS_ALL|FLAGS_REMOTE, L_ADMIN,
sendto_realops_flags(FLAGS_ALL, L_ADMIN,
"Server %s closed the connection",
get_client_name(client_p, SHOW_IP));
/* Opers get a masked IP */
sendto_realops_flags(FLAGS_ALL|FLAGS_REMOTE, L_OPER,
sendto_realops_flags(FLAGS_ALL, L_OPER,
"Server %s closed the connection",
get_client_name(client_p, MASK_IP));
@ -459,7 +459,7 @@ void error_exit_client(struct Client* client_p, int error)
}
sendto_realops_flags(FLAGS_ALL|FLAGS_REMOTE, L_ALL,
sendto_realops_flags(FLAGS_ALL, L_ALL,
"%s had been connected for %d day%s, %2d:%02d:%02d",
client_p->name, connected/86400,
(connected/86400 == 1) ? "" : "s",