mIRC Home    About    Download    Register    News    Help

Print Thread
need some help with my whois #33324 01/07/03 07:25 AM
Joined: Jul 2003
Posts: 16
X
xamp Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jul 2003
Posts: 16
this is my whois script, and i got some problems with it..
i want whois on query, and whois normally in active one.
now is someone queries me the whois comes to active window, when i should come to query window frown

; Full address, real name
raw 311:*: {
echo $color(whois) -a $chr(160) $+ _____________________________________________
echo $color(whois text) -a $chr(124) $2 $+ $chr(160) $+ $chr(160) $+ $+ ( $+ $3 $+ @ $+ $4)
echo $color(whois text) -a $chr(124) name: $6-
halt
}

; Channels, sort the channels to order: @#channel, +#channel, #channel
raw 319:*: { echo $color(whois text) -a $chr(124) chan: $sorttok($3-,32,c) | halt }

; Server and server description
raw 312:*: { haltdef }

; DALnet nick registration information (maybe other networks too?)
raw 307:*: { echo $color(whois text) -a $2 $3- | halt }

; Away message, sent only when user is away
raw 301:*: { echo $color(whois text) -a $chr(124) $2 is away: $3- | halt }

; IRC operator status, the script is using $5- because some networks have different
; messages to indicate operator status. The string always begins like "is a/an", so
; cut out the first two words ($3-4)
raw 313:*: { echo $color(whois text) -a $chr(124) Status: $5- | halt }

; DALnet help operator reply
raw 310:*: { echo $color(whois text) -a $chr(124) $2 $3- | halt }

; Idle time, some servers also give signon time (login time) which has to be converted with $asctime
raw 317:*: {
echo $color(whois text) -a $chr(124) idle: $duration($3)
halt
}

; End of whois
raw 318:*: { echo $color(whois text) -a $chr(160) $+ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ | halt }

Re: need some help with my whois #33325 01/07/03 09:12 AM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help /echo
/echo [color] [-deghiNtsaqlbfnmr] [#channel|[=]nick] <text>

raw 311:*: {
if ( $query($2) ) {
echo $color(whois) $2 $chr(160) $+ _____________________________________________
echo $color(whois text) $2 $chr(124) $2 $+ $chr(160) $+ $chr(160) $+ $+ ( $+ $3 $+ @ $+ $4)
echo $color(whois text) $2 $chr(124) name: $6-
halt
}
}

etc.


Code:
//if ( khaled isgod ) echo yes | else echo no
Re: need some help with my whois #33326 01/07/03 06:20 PM
Joined: Jul 2003
Posts: 16
X
xamp Offline OP
Pikka bird
OP Offline
Pikka bird
X
Joined: Jul 2003
Posts: 16
ok, i got that part working now, but new problem is this:
whois works when query, but when query is on and im in channel, i what the whois to come to the channel, not in query. this is my code atm

; Full address, real name
raw 311:*: {
echo $color(whois) $iif($query($2) != $null,$2,-a) $chr(160) $+ _____________________________________________
echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) $2 $+ $chr(160) $+ $chr(160) $+ $+ ( $+ $3 $+ @ $+ $4)
echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) name: $6-
halt
}

raw 319:*: { echo $color(whois text) $iif($query($2) != $null,$2,$iif($query($2) != $null,$2,-a)) $chr(124) chan: $sorttok($3-,32,c) | halt }

; Server and server description
raw 312:*: { haltdef }

; DALnet nick registration information (maybe other networks too?)
raw 307:*: { echo $color(whois text) $iif($query($2) != $null,$2,-a) $2 $3- | halt }

; Away message, sent only when user is away
raw 301:*: { echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) $2 is away: $3- | halt }

; IRC operator status, the script is using $5- because some networks have different
; messages to indicate operator status. The string always begins like "is a/an", so
; cut out the first two words ($3-4)
raw 313:*: { echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) Status: $5- | halt }

; DALnet help operator reply
raw 310:*: { echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) $2 $3- | halt }

; Idle time, some servers also give signon time (login time) which has to be converted with $asctime
raw 317:*: {
echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(124) idle: $duration($3)
halt
}

; End of whois
raw 318:*: { echo $color(whois text) $iif($query($2) != $null,$2,-a) $chr(160) $+ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ | halt }