Is it possible to make an alias of a built in mIRC command that will do everything the built in mIRC command is supposed to do, but will also do some custom routines? I don't want to have to do an entire rewrite of the command itself.
Let's say I want to add a routine to mIRC's
/sockopen command, but the routine is only to check to see if a value is set, if it is, the command will execute normally. Is it possible to do this without having to write a custom sockopen alias that will do everything mIRC's
/sockopen command does?
Code Example:
alias sockopen {
if ($hget(Lock,sockopen) == 0) { Let mIRC handle its [color:blue]/sockopen[/color] command. }
else {
echo -a * Error: /sockopen command locked
halt
}
}
Understand what I am trying to do?