This is my first piece of code to add PHP-like commands to mIRC.
I don't know if anyone have done this before, but I'm writing these from scratch.
Command: /include
Version: 1.0
Author: XTZGZoReX
Purpose: To include commands from a script file without loading it up.
Usage: /include filename.mrc
Notes: It parses everything in the included file as commands, so please don't have anything else in the file. Also, it doesn't have any error handlers as of now, and doesn't support INI files.
Enjoy!
alias include {
if ( $right($1,4) != .ini ) {
var %lines = 1
while ( %lines <= $lines($1) ) {
$read($1,%lines) $+ $crlf
inc %lines
}
}
else {
halt
}
}