mIRC Home    About    Download    Register    News    Help

Print Thread
#8593 28/01/03 03:39 AM
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
how can i do it a window query block

on 1:open:?: {
.window @query 200 200 300 300 | .aline @query acepta el privado?

if not ignore $nick
if yes ok acepted the query who send

(this two remote i cant did
please help me


#8594 28/01/03 04:05 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Maybe this is what you're looking for:
Code:
On *:open:?:*:{ .timer 1 0 auth_query $nick }
alias -l auth_query {
  if $?!="Accept private message from $1" == $false {
    .ignore -pntiu120 *!*@ $+ $gettok($query($1).addr,2,64)
    close -m $1
  }
}


It asks you for an authorization every time a new query window is open.

If you select 'No', the window will be closed, and a temporary ignore will be placed on the user's host.

The timer is used, because mIRC doesn't allow user-input identifiers ($input, $?, $?!) to be called directly from an event.


Link Copied to Clipboard