Query Control By SeiferAlmasy - Updated

By SeiferAlmasy on Jun 14, 2004

Clean Simple Query Control

dialog qc {
  title "Query Control By SeiferAlmasy"
  size -1 -1 140 51
  option dbu
  edit "", 3, 4 10 132 10, read
  text "From:", 5, 4 24 14 8
  edit "", 7, 20 22 116 10, read
  button "Accept", 1, 5 34 37 12, flat
  button "Decline", 2, 44 34 37 12, flat
  box "Query Control", 4, 1 1 138 49
}
on *:dialog:qc:sclick:1:{
  /window -w %qnick
  /msg %qnick $ewrap(Query Accepted)
  /dialog -x qc
  /window -a %qnick
  /unset %qnick
}
on *:dialog:qc:sclick:2:{
  close -m %qnick
  /msg %qnick $ewrap(Query Declined)
  /dialog -x qc
  unset %qnick
}
on *:OPEN:?: {
  if ($dialog(qc)) {
    .msg $nick $ewrap(Sorry $nick $+ , but I am busy with another message. Please try again later.)
    close -m $nick
  }
  else {
    /set %qnick $nick
    /window -h %qnick
    /msg %qnick $ewrap(Please Wait For Pm Acceptance/Decline)
    /dialog -m qc qc
    did -a qc 7 %qnick
    did -a qc 3 $1-
  }
}
alias ewrap {
  var %msg
  var %tok = 1
  var %word
  while ($gettok($1-,%tok,32) != $null) {
    %word = $gettok($1-,%tok,32)
    %msg = %msg 15 $+ $upper($left(%word,1)) $+ 15 $+ $right(%word,-1) 
    inc %tok
  }
  return 12,1(15 $+ %msg $+ 12)
}

Comments

Sign in to comment.
CharltonJ   -  Sep 07, 2007

nice, good job :) SeiferAlmasy :P

 Respond  
Godzilla   -  Sep 07, 2007

Pretty Stuff.

 Respond  
Lindrian   -  Dec 13, 2006

I would also give this one a high rate, but I cant manage to get this to work!
Maybe it doesnt work with NNscript 4.03?
And yes, Im using MDX.dll.

 Respond  
Andy   -  Nov 26, 2006

Very nice and very useful script in big networks...

I like it :) 9/10

 Respond  
Marius_Craciunoiu   -  Dec 02, 2004

the only thing that`s missing is to save the addreses in a file

 Respond  
Marius_Craciunoiu   -  Dec 02, 2004

nice, well done !

 Respond  
Shadow_Knight   -  Aug 23, 2004

cool

 Respond  
j0k3r   -  Jun 21, 2004

nothing exciting.

 Respond  
SeiferAlmasy   -  Jun 17, 2004

ShowstoppeR now try ;)

 Respond  
SeiferAlmasy   -  Jun 17, 2004

ugh ill make one that doesnt require mdx setups

 Respond  
X-FILE   -  Jun 15, 2004

Theres no need to use mdx

 Respond  
CRadle_of_filth   -  Jun 14, 2004

ShowstoppeR, are you using mdx.dll?

 Respond  
ShowstoppeR   -  Jun 14, 2004

its not working for me!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.