Why do you call this file an
ini? Looks like a plain text to me. ini files have a special structure, and so mirc has a different set of tools to manipulate them.
Anyway, mirc doesn't care about the extension. A proper script will always work, no matter how you name your files.
As for the script, "isin" isn't the appropriate operator for scanning files, because it's designed for strings comparison (string v1 is in string v2).
You can use $read() with the
s switch,which scans the file for a line beginning with a specified text (in this case - $banmask) and returns the
rest of the line.
Here, there's nothing after the banmask, thus $read() will return nothing -- but, $readn can help us to determine if one line actually matched in the last call to $read().
On @!*:unban:#:{
if !$read(perm.ini,s,$banmask) && $readn {
mode # +b $banmask
}
}
If you want to learn more about any command or identifier, type
/help <command>.