]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Use new gline format in play CHECKLAMECHANNEL and ns-gline.
authorChris Porter <redacted>
Thu, 29 May 2008 20:21:16 +0000 (20:21 +0000)
committerChris Porter <redacted>
Thu, 29 May 2008 20:21:16 +0000 (20:21 +0000)
newsearch/ns-gline.c

index 8bc393560225e8627b2ffd032ce6f54171ab5351..21a46f20a43bda56745975a7a6a4b72763dba6d5 100644 (file)
@@ -140,6 +140,7 @@ void gline_free(searchCtx *ctx, struct searchNode *thenode) {
   chanindex *cip, *ncip;
   int i, j, safe=0;
   char msgbuf[512];
+  time_t ti = time(NULL);
 
   localdata = thenode->localdata;
 
@@ -164,9 +165,9 @@ void gline_free(searchCtx *ctx, struct searchNode *thenode) {
               if (!IsOper(np) && !IsService(np) && !IsXOper(np)) {
                 nssnprintf(msgbuf, sizeof(msgbuf), localdata->reason, np);
                 if (np->host->clonecount <= NSMAX_GLINE_CLONES)
-                  irc_send("%s GL * +*@%s %u :%s", mynumeric->content, IPtostr(np->p_ipaddr), localdata->duration, msgbuf);
+                  irc_send("%s GL * +*@%s %u %d :%s", mynumeric->content, IPtostr(np->p_ipaddr), localdata->duration, ti, msgbuf);
                 else
-                  irc_send("%s GL * +%s@%s %u :%s", mynumeric->content, np->ident, IPtostr(np->p_ipaddr), localdata->duration, msgbuf);
+                  irc_send("%s GL * +%s@%s %u %d :%s", mynumeric->content, np->ident, IPtostr(np->p_ipaddr), localdata->duration, ti, msgbuf);
               }
               else
                 safe++;
@@ -184,9 +185,9 @@ void gline_free(searchCtx *ctx, struct searchNode *thenode) {
           if (!IsOper(np) && !IsService(np) && !IsXOper(np)) {
             nssnprintf(msgbuf, sizeof(msgbuf), localdata->reason, np);
             if (np->host->clonecount <= NSMAX_GLINE_CLONES)
-              irc_send("%s GL * +*@%s %u :%s", mynumeric->content, IPtostr(np->p_ipaddr), localdata->duration, msgbuf);
+              irc_send("%s GL * +*@%s %u %d :%s", mynumeric->content, IPtostr(np->p_ipaddr), localdata->duration, ti, msgbuf);
             else
-              irc_send("%s GL * +%s@%s %u :%s", mynumeric->content, np->ident, IPtostr(np->p_ipaddr), localdata->duration, msgbuf);
+              irc_send("%s GL * +%s@%s %u %d :%s", mynumeric->content, np->ident, IPtostr(np->p_ipaddr), localdata->duration, ti, msgbuf);
           }
           else
               safe++;