1. uranium
  2. shadowircd

Commits

jdhore  committed 4d4710a

Change all override snotes to wallops to match m_o* and to
make it a lot more obvious when a oper is using override.

  • Participants
  • Parent commits 27d03af
  • Branches trunk

Comments (0)

Files changed (5)

File modules/core/m_kick.c

View file
 			comment[REASONLEN] = '\0';
 
 		if(is_override)
-			sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+		{
+			sendto_wallops_flags(UMODE_WALLOP, &me,
 					"%s is overriding KICK [%s] on [%s] [%s]",
 					get_oper_name(source_p), who->name, chptr->chname, comment);
+			sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+					":%s WALLOPS :%s is overriding KICK [%s] on [%s] [%s]",
+					use_id(source_p), get_oper_name(source_p), who->name, chptr->chname, comment);
+		}
 
 		/* jdc
 		 * - In the case of a server kicking a user (i.e. CLEARCHAN),

File modules/m_invite.c

View file
 			!(chptr->mode.mode & MODE_FREEINVITE))
 	{
 		if(IsOverride(source_p))
-			sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+		{
+			sendto_wallops_flags(UMODE_WALLOP, &me,
 					"%s is overriding INVITE [%s] on [%s]",
 					get_oper_name(source_p), target_p->name, chptr->chname);
+			sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+					":%s WALLOPS :%s is overriding INVITE [%s] on [%s]",
+					use_id(source_p), get_oper_name(source_p), target_p->name, chptr->chname);
+		}
 		else
 		{
 			sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),

File modules/m_topic.c

View file
 		if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_chanop(msptr))
 		{
 			if(IsOverride(source_p))
-				sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+			{
+				sendto_wallops_flags(UMODE_WALLOP, &me,
 						"%s is overriding TOPIC on [%s]",
 						get_oper_name(source_p), chptr->chname);
+				sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+						":%s WALLOPS :%s is overriding TOPIC on [%s]",
+						use_id(source_p), get_oper_name(source_p), chptr->chname);
+			}
 			else
 			{
 				sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),

File src/channel.c

View file
 
 	if(IsOverride(source_p))
 	{
-		sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+		sendto_wallops_flags(UMODE_WALLOP, &me,
 				"%s is overriding JOIN to [%s]",
 				get_oper_name(source_p), chptr->chname);
+		sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+				":%s WALLOPS :%s is overriding JOIN to [%s]",
+				use_id(source_p), get_oper_name(source_p), chptr->chname);
 		return 0;
 	}
 

File src/chmode.c

View file
 		{
 			if(IsOverride(source_p))
 			{
-				sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+				sendto_wallops_flags(UMODE_WALLOP, &me,
 						"%s is overriding modes on %s: (%s list)",
-						get_oper_name(source_p), chptr->chname,
-						mode_type == CHFL_INVEX ? "invex" : "exempt");
+						get_oper_name(source_p), chptr->chname, mode_type == CHFL_INVEX ? "invex" : "exempt");
+				sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+						":%s WALLOPS :%s is overriding modes on %s: (%s list)",
+						use_id(source_p), get_oper_name(source_p), chptr->chname, mode_type == CHFL_INVEX ? "invex" : "exempt");
 			}
 			else
 			{
 						sendto_channel_local(flags, chptr, "%s%s %s",
 								     cmdbuf, modebuf, parabuf);
 						if(override)
-							sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+						{
+							sendto_wallops_flags(UMODE_WALLOP, &me,
 									"%s is overriding modes on %s: %s %s",
-									get_oper_name(source_p), chptr->chname,
-									modebuf, parabuf);
+									get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+							sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+									":%s WALLOPS :%s is overriding modes on %s: %s %s",
+									use_id(source_p), get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+						}
 					}
 					else
 						continue;
 			{
 				sendto_channel_local(flags, chptr, "%s%s %s", cmdbuf, modebuf, parabuf);
 				if(override)
-					sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
+				{
+					sendto_wallops_flags(UMODE_WALLOP, &me,
 							"%s is overriding modes on %s: %s %s",
-							get_oper_name(source_p), chptr->chname,
-							modebuf, parabuf);
+							get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+					sendto_server(NULL, chptr, NOCAPS, NOCAPS,
+							":%s WALLOPS :%s is overriding modes on %s: %s %s",
+							use_id(source_p), get_oper_name(source_p), chptr->chname, modebuf, parabuf);
+				}
 			}
 		}
 		if(override)