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

Comparing ircd-hybrid/trunk/src/channel.c (file contents):
Revision 4086 by michael, Sat Jun 28 16:44:20 2014 UTC vs.
Revision 4094 by michael, Sun Jun 29 11:48:50 2014 UTC

# Line 47 | Line 47
47   dlink_list channel_list;
48   mp_pool_t *ban_pool;    /*! \todo ban_pool shouldn't be a global var */
49  
50 + struct event splitmode_event =
51 + {
52 +  .name = "check_splitmode",
53 +  .handler = check_splitmode,
54 +  .when = 10
55 + };
56 +
57   static mp_pool_t *member_pool, *channel_pool;
58   static char buf[IRCD_BUFSIZE];
59  
# Line 844 | Line 851 | check_splitmode(void *unused)
851  
852        sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
853                             "Network split, activating splitmode");
854 <      eventAddIsh("check_splitmode", check_splitmode, NULL, 10);
854 >      event_add(&splitmode_event, NULL);
855      }
856      else if (splitmode && (server >= split_servers) && (Count.total >= split_users))
857      {
# Line 852 | Line 859 | check_splitmode(void *unused)
859  
860        sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
861                             "Network rejoined, deactivating splitmode");
862 <      eventDelete(check_splitmode, NULL);
862 >      event_delete(&splitmode_event);
863      }
864    }
865   }

Diff Legend

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