mIRC Homepage
Posted By: oSaYaP Help me please.. - 03/10/03 09:11 AM
I wanna make a remote that limit querys up to 5 querys
how can i do that ?
Posted By: theRat Re: Help me please.. - 03/10/03 11:34 AM
on *:open:?: if ( $query(0) > 5 ) { msg $nick I'm lost with all the queries I have, please try again later | close -m $nick }

or something along that...

Posted By: cold Re: Help me please.. - 03/10/03 12:53 PM
Edit: fixed
Code:
on ^*:open:?:*:{
  if ($query(0) [color:red]> 4[/color]) {
    !.msg $nick Sorry, I've reached my limit of open queries. Please try again later.

    ; You can remove the line below if you don't want to be warned:
    echo $color(info) -tai2 * $nick has sent a message

    halt
  }
}
Posted By: Online Re: Help me please.. - 03/10/03 02:06 PM
I'd stick to the idea of > 5 (or > 4 in this case, since ^ triggers the event before the current window is added to the $query() count), because if you open several queries manually (/query nick) and have more than 5 windows open, the event will not close further windows anymore.
Posted By: cold Re: Help me please.. - 03/10/03 02:10 PM
True, thanks. Just fixed it.
© mIRC Discussion Forums