From: Paul Date: Tue, 28 Oct 2008 23:48:22 +0000 (+0000) Subject: |# HG changeset patch X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/68e412882c2f5d40dfa37c8c82eadfdfaf0fe06b |# HG changeset patch |# User Paul |# Date 1223153597 -3600 |# Node ID a6c939705e0b23a98e80cc40525dd82dcda2f6f6 |# Parent bc0bb515dbe6b9452b6244a318ba0e21383a97ea |searching for changes |changeset: 1406:0592e46c2e6d |user: Paul |date: Sun Aug 31 17:27:10 2008 +0100 |summary: send new GL format --- diff --git a/lua/luacommands.c b/lua/luacommands.c index ddb7a49c..84b6e960 100644 --- a/lua/luacommands.c +++ b/lua/luacommands.c @@ -261,7 +261,7 @@ static int lua_gline(lua_State *ps) { snprintf(mask, sizeof(mask), "*@%s", IPtostr(target->p_ipaddr)); } - irc_send("%s GL * +%s %d %jd :%s", mynumeric->content, mask, duration, (intmax_t)time(NULL), reason); + irc_send("%s GL * +%s %d %jd :%s", mynumeric->content, mask, duration, (intmax_t)getnettime(), reason); LUA_RETURN(ps, lua_cmsg(LUA_PUKECHAN, "lua-GLINE: %s (%d users, %d seconds -- %s)", mask, usercount, duration, reason)); } diff --git a/proxyscan/proxyscan.c b/proxyscan/proxyscan.c index f2a3d39f..03b74e06 100644 --- a/proxyscan/proxyscan.c +++ b/proxyscan/proxyscan.c @@ -544,8 +544,8 @@ void killsock(scan *sp, int outcome) { if (!chp->glineid) { glinedhosts++; loggline(chp, sp->node); - irc_send("%s GL * +*@%s 1800 :Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d", - mynumeric->content,IPtostr(((patricia_node_t *)sp->node)->prefix->sin),chp->glineid); + irc_send("%s GL * +*@%s 1800 %jd :Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d", + mynumeric->content,IPtostr(((patricia_node_t *)sp->node)->prefix->sin),(intmax_t)getnettime(), chp->glineid); Error("proxyscan",ERR_DEBUG,"Found open proxy on host %s",IPtostr(((patricia_node_t *)sp->node)->prefix->sin)); } else { loggline(chp, sp->node); /* Update log only */ diff --git a/proxyscan/proxyscanhandlers.c b/proxyscan/proxyscanhandlers.c index 200b6b61..23b32e8f 100644 --- a/proxyscan/proxyscanhandlers.c +++ b/proxyscan/proxyscanhandlers.c @@ -69,8 +69,8 @@ void proxyscan_newnick(int hooknum, void *arg) { } /* set a SHORT gline - if they really have an open proxy the gline will be re-set, with a new ID */ - irc_send("%s GL * +*@%s 600 :Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d", - mynumeric->content,IPtostr(np->p_ipaddr),chp->glineid); + irc_send("%s GL * +*@%s 600 %jd :Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d", + mynumeric->content,IPtostr(np->p_ipaddr),(intmax_t)getnettime(), chp->glineid); chp->lastscan=time(NULL); chp->proxies=NULL;