void hub_free_variables(struct hub_info* hub) { hub_plugins_unload(hub); adc_msg_free(hub->command_info); adc_msg_free(hub->command_banner); adc_msg_free(hub->command_support); }
void hub_free_variables(struct hub_info* hub) { #ifdef PLUGIN_SUPPORT hub_plugins_unload(hub); #endif adc_msg_free(hub->command_info); adc_msg_free(hub->command_banner); if (hub->command_motd) adc_msg_free(hub->command_motd); if (hub->command_rules) adc_msg_free(hub->command_rules); adc_msg_free(hub->command_support); }