mIRC scripting
I'm trying to create an alias which allows me to just enter /igno or something in any query which will put that person on a 5h ignore and closes the query window.
What i got so far is:
igno {
/ignore -pniu1800 $foo
/close -m $foo
}
Obviously $foo isn't the right var to access the guys nick, also tried $nick and $active which both don't work, so what var do i have to put there?
And it would also be nice to have a check if its actually a query window that im typing the command in and skip any further action if its any other type of window.
Who can help me out?
What i got so far is:
igno {
/ignore -pniu1800 $foo
/close -m $foo
}
Obviously $foo isn't the right var to access the guys nick, also tried $nick and $active which both don't work, so what var do i have to put there?
And it would also be nice to have a check if its actually a query window that im typing the command in and skip any further action if its any other type of window.
Who can help me out?
someone wants to ignore me :<
btw
it should be $nick
works atleast for this:
on *:open:?:*:{
if (($nick !ison #future.cod4) && ($nick !ison #clanbase.crew) && ($nick !ison #clanbase.crew.cod)) {
msg $nick Gief me cookie or i wont reply!
}
}
[22:52:23] : Common channels: : +#gtv.prv +#gamestv.org
* /ignore: insufficient parameters (line 11, aliases.nns)
if ($window($active).type == query) {
.ignore -pniu1800 $active
.close -m $active
}
}
should work, tested it myself so
best script!