*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version. Important limitations are
* listed in the COPYING file that accompanies this software.
*
if(kNode)
{
- free(kNode);
+ /* free(kNode); dict_remove does this */
dict_remove(killed_users_dict, irc_ntoa(&user->ip));
}
}
struct handle_info *hi;
if (!(channel = GetChannel(argv[2]))) {
- ss_reply("SSMSG_NOT_REGISTERED", channel->name);
+ ss_reply("SSMSG_NOT_REGISTERED", argv[2]);
return 0;
}
struct handle_info *hi;
if (!(channel = GetChannel(argv[2]))) {
- ss_reply("SSMSG_NOT_REGISTERED", channel->name);
+ ss_reply("SSMSG_NOT_REGISTERED", argv[2]);
return 0;
}
int size = strlen(user->hostname) + 3;
char *mask = alloca(size);
snprintf(mask, size, "*@%s", user->hostname);
- gline_add(spamserv->nick, mask, spamserv_conf.gline_duration, reason, now, 1, 0);
+ gline_add(spamserv->nick, mask, spamserv_conf.gline_duration, reason, now, now, 1, 0);
spamserv_debug(SSMSG_DEBUG_GLINE, user->nick, user->hostname, channel->name);
}
else if(CHECK_KILL(uInfo))
return;
const char *modes = conf_get_data("services/spamserv/modes", RECDB_QSTRING);
- spamserv = AddService(nick, modes ? modes : NULL, "Anti Spam Services", NULL);
+ spamserv = AddLocalUser(nick, nick, NULL, "Anti Spam Services", modes);
spamserv_service = service_register(spamserv);
conf_register_reload(spamserv_conf_read);