How to halt scripts in a channel.
Block you from messaging in a channel that you wont msg.
Used by /msg.
You may also type it to msg chan, but dont /msg.
Like:
On $*:Text:/^[!.]msg/Si:#: {
msg # - $+ $nick $+ - Wanted me to say: $2- $+ .
}
This script will be blocked.
Alias msg {
if ($chan == #Channel || $chan == #Channel) {
halt
}
else {
msg $$1-
}
}
You can also change "#Channel" with the channel you want to block.
Channel that is needed to block if you are on them:
#mSL #mIRC #IRChelp #BNC
Aside from using $istok for the channels, your current code would not work properly, as mIRC doesn't allow internal recursion of commands, yet the msg in the else section would call the alias again.
To force mIRC to use the built-in coding for the /msg command, prefix the command with an !
ie: /!msg
Also, you don't specify where the final message is to be sent to.
alias msg { if !$istok(#mSL #mIRC #IRChelp #BNC,$chan,32) { /!msg $chan $$1- } }