mIRC Home    About    Download    Register    News    Help

Print Thread
#116763 08/04/05 09:25 PM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
hi
can someone please help
when someone says something to me in a query (when it opens) or when i open it, i wanna echo the persons whois and a list of channels that he is on and has OP to the query
i searched in mirc help, but i didn't find the solution

#116764 08/04/05 11:47 PM
Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
mIRC already has this feature in it. mIRC Options > IRC > anf check Whois on query and in the whois you will see the channels he/she is in as well as their status in those channels.

#116765 08/04/05 11:51 PM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
i know that...but i wanna add some other stuff later, and i whould just like to know how....

#116766 09/04/05 01:00 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230

#116767 09/04/05 07:47 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
there's one problem...the whois shows in the status window, and i want it to be in the query...

i used this:

Code:
 
on *:open:?:*:{ %q.a = o | .raw -q whois $nick }
;
alias query { .query $1- | %q.a = o | .raw -q whois $1 |   .load.switchbar }
;
alias q.open {
  var %q.cc = $comchan($1,0), %q.c,%q.l = 1
  echo -i25 $1 query opened with ( $+ $1 $+ $iif(%q.addr != $null,$chr(32) $+ $v1) $+ ) | unset %q.addr
  while (%q.l <= %q.cc) { %q.c = %q.c $comchan($1,%q.l) $+ $iif(%q.l != %q.cc,$chr(44)) | inc %q.l }
  echo -i25 $1 you are on %q.cc common channel $+ $iif(%q.cc != 1,s) with $1 $+ $iif(%q.cc > 0,$chr(44) which $iif(%q.cc > 1,are,is) $+ : %q.c)
}
;
Raw 311:*:{ if (%q.a) { %q.addr = $3 $+ @ $+ $4 | q.open $2 | q.despool.held.text $2 | unset %q.a | halt } | else { | halt } }
;
alias -l q.despool.held.text {
  if $!window($1) {
    var %i = 1
    while ($var($+(%,q.,$1,.text.line.,%i),1)) {
      echo -itlbfmr $1 $($+(%,q.,$1,.text.line.,%i),2)
      inc %i
    }
  }
  unset $+(%,q.,$1,.lines.counter)
  unset $+(%,q.,$1,.text.line.*)
  .timer $+ $+(.q.,$1,.text.despooler) off
}
;
on ^*:text:*:?:{
  if (%q.a) {
    haltdef
    inc -u60 $+(%,q.,$nick,.lines.counter)
    set -u60 $+(%,q.,$nick,.text.line.,$($+(%,q.,$nick,.lines.counter),2)) $+(<,$nick,>) $1-
    if ($($+(%,q.,$nick,.lines.counter),2) == 1) {
      .timer $+ $+(.q.,$nick,.text.despooler) 1 1 q.despool.held.text $!( $+ $nick $+ ,)
    }
  }
}  

#116768 09/04/05 09:05 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
you said you wanted to know how , and your going to add your own stuff later, so i assume you knew how to script somewhat, if you want the rest of the whois info in the query window then capture it using raw's and echo it in there.

#116769 09/04/05 09:32 AM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
i'm now to scripting, i only know some basics, so i don't know how to do that (capture it using raw's and echo it in there)

#116770 09/04/05 01:57 PM
Joined: Feb 2005
Posts: 24
R
Ratzor Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2005
Posts: 24
i ment new smile

so...can somobody help me?


Link Copied to Clipboard