ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/restart.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/restart.c (file contents):
Revision 4565 by michael, Sun Aug 24 10:27:40 2014 UTC vs.
Revision 5347 by michael, Sun Jan 11 12:42:20 2015 UTC

# Line 1 | Line 1
1   /*
2   *  ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3   *
4 < *  Copyright (c) 1997-2014 ircd-hybrid development team
4 > *  Copyright (c) 1997-2015 ircd-hybrid development team
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 40 | Line 40 | void
40   server_die(const char *message, int rboot)
41   {
42    char buffer[IRCD_BUFSIZE] = "";
43 <  dlink_node *ptr = NULL;
43 >  dlink_node *node = NULL;
44    static int was_here = 0;
45  
46    if (rboot && was_here++)
# Line 53 | Line 53 | server_die(const char *message, int rboo
53      snprintf(buffer, sizeof(buffer), "Server %s: %s",
54               rboot ? "Restarting" : "Terminating", message);
55  
56 <  DLINK_FOREACH(ptr, local_client_list.head)
57 <    sendto_one_notice(ptr->data, &me, ":%s", buffer);
56 >  DLINK_FOREACH(node, local_client_list.head)
57 >    sendto_one_notice(node->data, &me, ":%s", buffer);
58  
59 <  sendto_server(NULL, NOCAPS, NOCAPS, ":%s ERROR :%s", me.id, buffer);
59 >  sendto_server(NULL, 0, 0, ":%s ERROR :%s", me.id, buffer);
60  
61    ilog(LOG_TYPE_IRCD, "%s", buffer);
62  

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)