If I understood you correctly, then you want so that when a specific version of the client is found this script set the mode SHUN per user???
You should be aware that to use this command you must be in IRCop status and have certain rights on the server to be able to execute such a command.
Also, you should understand that in this way you will block all innocent users who are found to have this version of the client during the check, and they will not be able to do anything on the server.

But if you still want to use this, then in order for everything started working, this requires you need to changing your code something like this:

Code
on 1:CTCPREPLY:VERSION*:{
  ;----------------------------
  var %banversion = mIRC v7.55
  ;----------------------------
  if (%banversion isin $strip($2-)) {
    /msg #mastercontrol,#version 04SHUN VERSION $nick : $2-
    /notice $nick Warning! Your client version: %banversion - outdated. Please install a more recent version ...
    /SHUN $nick 1h : %banversion - Shunned version
  }
  else { /msg #mastercontrol,#version 03VERSION $nick : $2- }
}

Where the value of the variable "%banversion" will be the version for which the banned mode will be set for this client's user. Replace this value after the "=" sign with the part of the text that your script should catch.

I also recommend that you additionally perform auto send a "/notice" with a message for to all users who will be banned using this script.



🌐 https://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples