mIRC Home    About    Download    Register    News    Help

Print Thread
#226653 10/10/10 11:14 PM
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Okay so the raw numerics for a whois are:

301 nick :away
310 nick :looks very helpful
311 nick username address * :info
312 nick server :info
313 nick :is an IRC Operator
317 nick seconds signon :info
318 request :End of /WHOIS list.
319 nick :channels
431 :No nickname given

and whowas:

301 nick :away
314 nick username address * :info
369 request :End of WHOWAS
406 nickname :There was no such nickname
431 :No nickname given

Now for an IP address the raw numeric is 307 and 340. On a whois, does it use the numerics 307 and 340? I know it probably depends from network to network.

Here is the whois script I made
Code:
raw 311:*: { 
  echo -a  $+ $color(whois) $+ - 
  echo -a 12*!*14 DeluXe Whois 12*!*4 ( $+ $2 $+ )12 *!*
  echo -a 4Hostmask: $+ $color(whois) *!*@ $+ $4 $+ 
  echo -a 4E-mail: $+ $color(whois) $3 $+  
  echo -a 4Fullname: $+ $color(whois) $6- $+ 
  .halt 
}
raw 307:*: { 
  echo -a 4Registered: $+ $color(whois) $4- $+ 
  .halt 
}
raw 319:*: { 
  echo -a 4Channels: $+ $color(whois) $3- $+ 
  .halt 
}
raw 312:*: { 
  if (%whowas != $true) { 
    echo -a 4Server: $+ $color(whois) $3 $+  
    echo -a 4IRCd: $+ $color(whois) $4- $+ 
    .halt 
  }
  elseif (%whowas == $true) {
    echo -a 4Server: $+ $color(whois) $3 
    echo -a 4Date: $+ $color(whois) $4-
    unset %whowas
    .halt 
  }
}
raw 328:*: {
  echo -a 4IP: $+ $color(whois) $7- $+ 
  .halt 
}
raw 317:*: { 
  echo -a 4Idle time: $+ $color(whois) $duration($3) $+  
  echo -a 4Sign on: $+ $color(whois) $asctime($4) $+ 
  .halt 
}
raw 313:*: { 
  echo -a 4IRCop: $+ $color(whois) $5- $+ 
  .halt 
}
raw 310:*: {
  echo -a 4Helpful: $+ $color(info) $3- $+ 
  .halt 
}
raw 309:*: { 
  echo -a 4Language: $+ $color(info) $3- $+  
  .halt 
}
raw 325:*: { 
  echo -a 4Language Filter: $+ $color(info) $3- $+ 
  .halt 
}
raw 301:*: { 
  echo -a 4Away: $+ $color(info) $3- $+ 
  .halt 
}
raw 318:*: { 
  echo -a 12*!*14 End of /whois 12*!*
  echo -a  $+ $color(whois) $+ -
  .halt 
}
raw 314:*: { 
  %whowas = $true
  echo -a  $+ $color(whois) $+ - 
  echo -a 12*!*14 DeluXe Whowas 12*!*4 ( $+ $2 $+ )12 *!* 
  echo -a 4Hostkmask: $+ $color(whois) *!*@* $+ $4 $+ 
  echo -a 4E-mail: $+ $color(whois) $3 $+ 
  echo -a 4Fullname: $+ $color(whois) $6- 
  .halt 
}
raw 406:*: { 
  echo -a  $+ $color(whois) $+ - 
  echo -a 12*!*14 $2 there was no such nickname. 12*!*
  .halt 
}
raw 369:*: { 
  echo -a 12*!*14 End of /whowas 12*!* 
  echo -a  $+ $color(whois) $+ -
  .halt 
}


Some of the raw numerics work, others don't. I've tested it on several servers. Some of the raw numerics in this script aren't even listed in the whois part of the raw numerics list on mIRC Scripting Network either :\


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The common RAW numerics can be found here.

You can also find additional numerics that have been reported on here. Please note that this information is posted by regular users and, likely, has not been confirmed.

As you have noted, some networks return extra numerics on a command, but whether there are extra returned or not, the common numerics are returned no matter what network you are on.

If you wish, you are more than welcome to review and use information from my Whois Dialog snippet.

Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Okay thank you. And that list of common numerics is the same one I have in my favorites list :P but thank you for the other info laugh


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
And remember that /debug is always very handy to look at the actual raw numerics.

5618 #226658 11/10/10 06:15 AM
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Oh, I was using

Code:
raw *:*: { echo -a NUMERIC: $numeric INFO: $1- }


But I will try out the debug too.


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."

Link Copied to Clipboard