Browse Source

m_block_masshighlight/chansno: Fix warnings about 3manyargs5me

Wazakindjes 2 years ago
parent
commit
b5b5f6acd2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      u4/m_block_masshighlight.c
  2. 1 1
      u4/m_chansno.c

+ 1 - 1
u4/m_block_masshighlight.c

@@ -413,7 +413,7 @@ int masshighlight_configposttest(int *errs) {
 
 	if(!muhcfg.got_action) {
 		muhcfg.action = 'g'; // Gline em by default lol
-		config_warn("[block_masshighlight] Unable to find 'action' directive, defaulting to: gline", muhcfg.action);
+		config_warn("[block_masshighlight] Unable to find 'action' directive, defaulting to: gline");
 	}
 
 	if(strchr("gzs", muhcfg.action) && !muhcfg.got_duration) { // Duration is only required for X:Lines =]

+ 1 - 1
u4/m_chansno.c

@@ -644,7 +644,7 @@ int chansno_hook_tkladd(aClient *cptr, aClient *sptr, aTKline *tkl, int parc, ch
 				snprintf(msgbuf, BUFSIZE, "Permanent %s added for %s on %s GMT (from %s: %s)", txt, tkl->hostmask, set_at, tkl->setby, tkl->reason);
 		}
 		else
-			snprintf(msgbuf, BUFSIZE, "Permanent %s added for %s on %s GMT (from %s: %s)", txt, tkl->usermask, tkl->hostmask, set_at, tkl->setby, tkl->reason);
+			snprintf(msgbuf, BUFSIZE, "Permanent %s added for %s@%s on %s GMT (from %s: %s)", txt, tkl->usermask, tkl->hostmask, set_at, tkl->setby, tkl->reason);
 	}
 
 	SendNotice_simple(CHSNO_TKL_ADD, 0);