]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Add comments for glineby*().
authorGunnar Beutner <redacted>
Wed, 17 Jul 2013 21:06:57 +0000 (23:06 +0200)
committerGunnar Beutner <redacted>
Wed, 17 Jul 2013 21:06:57 +0000 (23:06 +0200)
--HG--
branch : shroudtrusts

glines/glines_buf.c
glines/glines_util.c

index 27ab9940af31855c323b796302ae29bf75a97e15..df24a04ee0f739c46c853a7098d1593e9e8a8adb 100644 (file)
@@ -297,7 +297,7 @@ void glinebufcommit(glinebuf *gbuf, int propagate) {
 
     glinebuflog[glinebuflogoffset]= gbl;
   }
-  
+
   glinebufabort(gbuf);
 }
 
index 01eb1817624f87027d8bd452365848a377f1f884..5f3448568f31bb3ed9b5ed48c9f2595ecc4ba841 100644 (file)
@@ -1,4 +1,5 @@
 #include "../irc/irc.h"
+#include "../trusts/trusts.h"
 #include "glines.h"
 
 int glinebyip(const char *user, struct irc_in_addr *ip, unsigned char bits, int duration, const char *reason, int flags, const char *creator) {
@@ -6,6 +7,7 @@ int glinebyip(const char *user, struct irc_in_addr *ip, unsigned char bits, int
   int hits;
 
   glinebufinit(&gbuf, 1);
+  glinebufcommentf(&gbuf, "on IP mask %s@%s, set by %s", user, trusts_cidr2str(ip, bits), creator);
   glinebufaddbyip(&gbuf, user, ip, bits, flags, creator, reason, getnettime() + duration, getnettime(), getnettime() + duration);
 
   glinebufcounthits(&gbuf, &hits, NULL, NULL);
@@ -23,6 +25,7 @@ int glinebynick(nick *np, int duration, const char *reason, int flags, const cha
   int hits;
 
   glinebufinit(&gbuf, 1);
+  glinebufcommentf(&gbuf, "on nick %s!%s@%s, set by %s", np->nick, np->ident, np->host->name->content, creator);
   glinebufaddbynick(&gbuf, np, flags, creator, reason, getnettime() + duration, getnettime(), getnettime() + duration);
 
   glinebufcounthits(&gbuf, &hits, NULL, NULL);