Browse Source

Update version date, added tkl-add to README.md

jesopo 3 years ago
parent
commit
7b27b0e060
2 changed files with 3 additions and 1 deletions
  1. 1 0
      README.md
  2. 2 1
      u4/m_chansno.c

+ 1 - 0
README.md

@@ -716,6 +716,7 @@ And here's a list of types you can use fam:
 * `channel-destructions` => Channel destructions (the last user parted from a channel), notify local users only (to prevent duplicates)
 * `oper-ups` => Successful oper-ups, displays opernick and opercla$$
 * `spamfilter-hits` => Notify whenever someone matches a spamfilter
+* `tkl-add` => Notify whenever a TKL is added (G:Line, K:Line, Z:Line, etc)
 
 You may have noticed the term `local` a lot above. This means the underlying hook only triggers for clients connected directly to that particular server. So people on `server A` doing a chanmode change won't cause `server B` to pick up on it. In this case `A` will simply broadcast it so everyone gets notified. =] The exception on this are channel destructions; every server will see the event so they will only broadcast it to their local users. I added dis because fuck dupes. ;3
 

+ 2 - 1
u4/m_chansno.c

@@ -121,7 +121,7 @@ char msgbuf[BUFSIZE + 1];
 
 ModuleHeader MOD_HEADER(chansno) = {
 	"m_chansno",
-	"$Id: v1.04 2017/11/26 Gottem$",
+	"$Id: v1.04 2018/05/31 Gottem$",
 	"Allows you to assign channels for specific server notifications (sort of like snomasks)",
 	"3.2-b8-1",
 	NULL
@@ -568,6 +568,7 @@ static int chansno_override_oper(Cmdoverride *ovr, aClient *cptr, aClient *sptr,
 	return ret;
 }
 
+// Added by jesopo
 int chansno_hook_tkladd(aClient *cptr, aClient *sptr, aTKline *tkl, int parc, char *parv[]) {
 	char txt[256];
 	char set_at[256];