deregistercontrolcmd("noticeflags", &noperserv_noticeflags);
deregistercontrolcmd("userflags", &noperserv_userflags);
deregistercontrolcmd("noticeflags", &noperserv_noticeflags);
+ deregistercontrolcmd("hello", &noperserv_hello);
+ deregistercontrolcmd("deluser", &noperserv_deluser);
noperserv_cleanup_hooks();
int getcopyconfigitemint(char *section, char *key, int def, int *value) {
char buf[50];
sstring *ini;
+ int r;
snprintf(buf, sizeof(buf), "%d", def);
ini = getcopyconfigitem(section, key, buf, 6);
if(!ini)
return 0;
- if(!protectedatoi(ini->content, value))
+ r = protectedatoi(ini->content, value);
+ freesstring(ini);
+ if(!r)
return 0;
return 1;