]> jfr.im git - irc/quakenet/newserv.git/commitdiff
|# HG changeset patch
authorPaul <redacted>
Tue, 28 Oct 2008 23:48:22 +0000 (23:48 +0000)
committerPaul <redacted>
Tue, 28 Oct 2008 23:48:22 +0000 (23:48 +0000)
|# User Paul <redacted>
|# Date 1223153597 -3600
|# Node ID a6c939705e0b23a98e80cc40525dd82dcda2f6f6
|# Parent bc0bb515dbe6b9452b6244a318ba0e21383a97ea
|searching for changes
|changeset:   1406:0592e46c2e6d
|user:        Paul <redacted>
|date:        Sun Aug 31 17:27:10 2008 +0100
|summary:     send new GL format

lua/luacommands.c
proxyscan/proxyscan.c
proxyscan/proxyscanhandlers.c

index ddb7a49c699f183176b3f7fe477f1235b9f61287..84b6e960e14c33162338e6d3817108a8fca1ed8f 100644 (file)
@@ -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));
 }
 
index f2a3d39fae7a7d5c3e07f465ed1471849c962f1f..03b74e06bed8bbfdef521c8f5907a8c19a47df9f 100644 (file)
@@ -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 */
index 200b6b6164154148e5dc47e6ecc6d9af2c3fc8f5..23b32e8fde8480d592a08bc8b05dc53b87000d03 100644 (file)
@@ -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;