*** There was an error in the previous post, but due to the long moderation (check), it was not possible for me to fix this error. I ask the forum moderator to delete my previous post.

danielboom - If I understand your question correctly, then you want to hide the use of these commands from being displayed on the channels.
In this case, you need to add the "halt" at the end of each condition to execute your commands:

on *:INPUT:*:{
  if ($1 == !ifo) { .echo -at 08,06 Whois:00 $2  | .whois $2 | halt }
  if ($1 == !sj) { .sajoin $2 #channel | halt }
  if ($1 == !sp) { .sapart $2 #channel | halt }

For more details see here: https://en.wikichip.org/wiki/mirc/commands/halt or https://www.mirc.com/help/html/halting_text.html

πŸ…ΈπŸ†πŸ…² - 𝔦'𝔱𝔰 𝔸 π•‚π–ŽΙ΄π™™ ᴏ𝙛 π•„π™–π–Œπ™žπ™˜