#include "chanserv.h"
#include "../lib/irc_string.h"
#include "../core/schedule.h"
+#include "../glines/glines.h"
void chanservdgline(void* arg) {
reguser *rup=(reguser*)arg;
if (ucount >= MAXGLINEUSERS) {
chanservwallmessage("Delayed GLINE \"*!%s@%s\" (account %s) would hit %d users, aborting.",
- nl->ident, IPtostr(nl->p_ipaddr), rup->username, ucount);
+ nl->ident, IPtostr(nl->ipaddress), rup->username, ucount);
} else {
char *reason = "Network abuse";
if(rup->suspendreason)
reason = rup->suspendreason->content;
- glinesetbynick(nl, 3600, reason, "chanserv", 0);
+ glinebynick(nl, 3600, reason, 0, "chanserv");
chanservwallmessage("Delayed GLINE \"*!%s@%s\" (authed as %s) expires in 60 minute/s (hit %d user%s) (reason: %s)",
- nl->ident, IPtostr(nl->p_ipaddr), rup->username, ucount, ucount==1?"":"s", reason);
+ nl->ident, IPtostr(nl->ipaddress), rup->username, ucount, ucount==1?"":"s", reason);
}
}
}