dict_t killed_users_dict;
#define spamserv_notice(target, format...) send_message(target , spamserv , ## format)
-#define spamserv_debug(format...) do { if(spamserv_conf.debug_channel) send_channel_notice(spamserv_conf.debug_channel , spamserv , ## format); } while(0)
+#define spamserv_debug(format...) do { if(spamserv_conf.debug_channel) send_channel_message(spamserv_conf.debug_channel , spamserv , ## format); } while(0)
#define ss_reply(format...) send_message(user , spamserv , ## format)
#define SET_SUBCMDS_SIZE 10
free(uInfo);
}
-static int
+static void
spamserv_new_user_func(struct userNode *user)
{
if(!IsLocal(user))
spamserv_create_user(user);
-
- return 0;
}
static void
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, now, 1);
+ gline_add(spamserv->nick, mask, spamserv_conf.gline_duration, reason, now, now, 0, 1);
spamserv_debug(SSMSG_DEBUG_GLINE, user->nick, user->hostname, channel->name);
}
else if(CHECK_KILL(uInfo))
struct string_list *strlist;
unsigned int flags,exceptlevel;
char *str, *info;
- time_t expiry;
+ unsigned long expiry;
for(it = dict_first(database); it; it = iter_next(it))
{