add svskill
[srvx.git] / src / spamserv.c
index 8eb84f7aceba9f9d2357c28a60873a6f441ecc31..0a88cb23d51e96f61cf497f99b25f2a084bc495f 100644 (file)
@@ -513,13 +513,11 @@ spamserv_delete_user(struct userInfo *uInfo)
        free(uInfo);
 }
 
-static int
+static void
 spamserv_new_user_func(struct userNode *user)
 {
        if(!IsLocal(user))
                spamserv_create_user(user);
-  
-       return 0;
 }
 
 static void
@@ -1805,7 +1803,7 @@ spamserv_channel_message(struct chanNode *channel, struct userNode *user, char *
                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))
@@ -1841,7 +1839,7 @@ spamserv_saxdb_read(struct dict *database)
        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))
        {