Example #1
0
/* -------------------------------------------------------------------------- *
 * Shut down the chanmode module                                              *
 * -------------------------------------------------------------------------- */
void chanmode_shutdown(void)
{
  log(chanmode_log, L_status, "Shutting down [chanmode] module...");

  ircd_support_unset("MODES");
  ircd_support_unset("MAXBANS");

  mem_static_destroy(&chanmode_item_heap);
  mem_static_destroy(&chanmode_heap);

  log_source_unregister(chanmode_log);
}
Example #2
0
File: dlink.c Project: rsenn/tichu
/* -------------------------------------------------------------------------- *
 * Destroy heap                                                               *
 * -------------------------------------------------------------------------- */
void dlink_shutdown(void)
{
  log(dlink_log, L_status, "Shutting down [dlink] module...");
  
  mem_static_destroy(&dlink_heap);
  
  log_source_unregister(dlink_log);
}
Example #3
0
File: class.c Project: rsenn/tichu
/* -------------------------------------------------------------------------- *
 * Destroy class heap and cancel timer.                                       *
 * -------------------------------------------------------------------------- */
void class_shutdown(void)
{
  struct class *clptr;
  struct class *next;
  
  log(class_log, L_status, "Shutting down [class] module...");
  
  dlink_foreach_safe(&class_list, clptr, next)
    class_delete(clptr);

  mem_static_destroy(&class_heap);
  
  log_source_unregister(class_log);
}
Example #4
0
File: player.c Project: rsenn/tichu
/* -------------------------------------------------------------------------- *
 * Destroy game heaps and cancel timer.                                       *
 * -------------------------------------------------------------------------- */
void player_shutdown(void)
{
  struct player *player;
  struct node *next;
  
  log(player_log, L_status, "Shutting down [player] module...");

  dlink_foreach_safe(&player_list, player, next)
    player_delete(player);

  mem_static_destroy(&player_heap);
  
  log_source_unregister(player_log);
}
Example #5
0
void lc_cookie_unload(void)
{
  struct lc_cookie *cookie = NULL;
  struct node      *nptr;
  struct node      *next;

  dlink_foreach_safe_data(&lc_cookie_list, nptr, next, cookie)
    lc_cookie_done(cookie);

  hook_unregister(lclient_release, HOOK_DEFAULT, lc_cookie_release);
  hook_unregister(lclient_login, HOOK_DEFAULT, lc_cookie_hook);

  lc_cookie_msg->handlers[MSG_UNREGISTERED] = m_unregistered;

  mem_static_destroy(&lc_cookie_heap);
}