Browse Source

Merge branch 'master' of k4be/unrealircd_mods into master

Wazakindjes 2 years ago
parent
commit
95f602cc6c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      u4/m_anti_amsg.c

+ 2 - 2
u4/m_anti_amsg.c

@@ -39,7 +39,7 @@ ModDataInfo *amsgMDI; // To store every user's last message with their client po
 // Dat dere module header
 ModuleHeader MOD_HEADER(m_anti_amsg) = {
 	"m_anti_amsg", // Module name
-	"$Id: v1.02 2018/04/16 Gottem$", // Version
+	"$Id: v1.03 2019/01/06 Gottem$", // Version
 	"Drop messages originating from /amsg", // Description
 	"3.2-b8-1", // Modversion, not sure wat do
 	NULL
@@ -113,7 +113,7 @@ static int anti_amsg_override(Cmdoverride *ovr, aClient *cptr, aClient *sptr, in
 	int bail = 0; // In case we need to droppem but we still need to free some shit before returning
 
 	// Inb4duplicate notices =] Also allow U:Lines and servers, just in case
-	if(!sptr || !MyConnect(sptr) || IsULine(sptr) || IsServer(sptr) || IsMe(sptr))
+	if(parc < 3 || !sptr || !MyConnect(sptr) || IsULine(sptr) || IsServer(sptr) || IsMe(sptr))
 		return CallCmdoverride(ovr, cptr, sptr, parc, parv); // Run original function yo
 
 	// Check for PRIVMSG #chan1,#chan2