For some reason, mIRC thinks the closing bracket -
) - is a part of the variable name, thus producing an error.
Maybe:
scon -ast1 if ($network == %tmpmnslserv ) msg %nickservname.network identify somepass
(notice the space after the variable name.)
Though, don't put a space before the $network, or you'll have to write $
!network instead as the line is being evaluated twice.
If you want to include a more complicated code, it's suggested to put it within an alias, and call it from the /scon line, like this:
alias do_stuff {
if ($network == %tmpmnslserv) {
msg %nickservname.network identify somepass
}
}
and your script will run...
scon -ast1 do_stuff