mIRC Homepage

how to do this.

Posted By: xamp

how to do this. - 04/07/03 06:52 AM

1. If i whois on channel, i want whois to come to the channel
even if im having a query with that who i am whoissing.
2. if someone queries me, i waht whois to come query window
3. whois on double click in query

whois code that will work like normalwhois with whois on query and in active.

-a is active -s is for status but what is for the nowmal view?

thank
confused
Posted By: SladeKraven

Re: how to do this. - 04/07/03 07:27 AM

This is the code I use for displaying whois statistics in any window.
Code:
alias whoisecho { echo $colour(ctcp text) -a 4 $$1  $+ $colour(action text) $$2- }
alias whois {
  unset %whois*
  enable #whois | set %temp.whoisnick $1 | whois $1-
}
#whois off
raw 401:*:set -u10 %nothere Yup | halt
raw 325:*:set -u10 %whoisears $4- | halt 
raw 308:*:set -u10 %whoisagent Yes | halt  
raw 335:*:set -u10 %whoisbot YES | set %whoisbotinf $7- | halt
raw 311:*:unset %nouser | nc $4 | set -u10 %whoisnick $2 | set -u10 %whoisaddress $3 $+ @ $+ $4 | set -u10 %whoisname $6- | halt
raw 319:*: { chanfix $3- | halt }
raw 312:*:set -u10 %whoisserver $3 | set %whoisserverinfo $4- | halt
raw 317:*:set -u10 %whoisidle $duration($3) | halt
raw 301:*:set -u10 %whoisaway $3- | /halt
raw 313:*:set -u10 %whoisircop $5- | /halt
raw 310:*:set -u10 %whoishelp ( $+ $3- $+ ) | halt 
raw 309:*:set -u10 %whoislang $9 | halt 
raw 327:*:set -u10 %whoisjava $8 | halt 
raw 307:*:set -u10 %whoisreg Yes | halt
raw 328:*:set -u10 %whoisIP $7- | halt
raw 318:*:{ whoisdisplay }
alias whoisdisplay {
  if (%nothere != Yup) {
    echo -a           12Whois 12on 12 $+ %whoisnick $+ 
    if (%whoisname != $null) { whoisecho Name: %whoisname }
    if (%whoisaddress != $null) { whoisecho Address: %whoisaddress }
    if (%whoisIP != $null) { whoisecho IP $+ $chr(160) $+ Address: %whoisIP }
    if (%whoischannels != $null) { whoisecho Channels: %whoischannels }
    else { whoisecho Channels: None }
    whoisecho Origin: %origin
    if (%whoisserver != $null) { whoisecho Server: %whoisserver }
    if (%whoisserverinfo != $null) whoisecho Server $+ $chr(160) $+ Info: %whoisserverinfo
    if (%whoisaway != $null) { whoisecho Away: %whoisaway }
    else { whoisecho Away: User is not away }
    if (%whoisidle != $null) { whoisecho Idletime: %whoisidle }
    if (%whoisircop != $null) { whoisecho Status: %whoisircop %whoishelp $whm }
    elseif (%whoisagent != $null) { whoisecho Status: Conference Room Server Agent (bot) }
    elseif (%whoisbot != $null) { whoisecho Status: Channel Bot on %whoisbotinf }
    else { whoisecho Status: Normal User $whm }
    if (%whoislang != $null) { whoisecho Language: %whoislang }
    if (%whoisjava != $null) { whoisecho Java $+ $chr(160) $+ User: %whoisjava } 
    if (%whoisears != $null) { whoisecho Profanity $+ $chr(160) $+ Filter: ON  }
    if (%whoisreg != $null) { whoisecho Registered $+ $chr(160) $+ Nick: %whoisreg }
    //echo -a 12End of Whois on %whoisnick $+ 4 
    disable #whois 
    unset %nothere
    unset %whois*
    unset %origin
    unset %coun
    halt
  }
  else { unset %nothere | disable #whois | halt }
}
#whois end
alias chanfix { 
  set %whoischannels $1- 
  %whoischannels = $replace(%whoischannels,-#,x#)
  %whoischannels = $replace(%whoischannels,-@#,x12@#)
  %whoischannels = $replace(%whoischannels,-+#,x3+#)
  %whoischannels = $replace(%whoischannels,@#,12@#)
  %whoischannels = $replace(%whoischannels,+#,3+#)
}
alias coun {
  if (*.af iswm $1 ) { set -u10 %coun Afghanistan | goto end }
  if (*.al iswm $1 ) { set -u10 %coun Albania | goto end }
  if (*.dz iswm $1 ) { set -u10 %coun Algeria | goto end }
  if (*.as iswm $1 ) { set -u10 %coun American Samoa | goto end }
  if (*.ad iswm $1 ) { set -u10 %coun Andorra | goto end }
  if (*.ao iswm $1 ) { set -u10 %coun Angola | goto end }
  if (*.ai iswm $1 ) { set -u10 %coun Anguilla | goto end }
  if (*.aq iswm $1 ) { set -u10 %coun Antarctia | goto end }
  if (*.ag iswm $1 ) { set -u10 %coun Antigua and Barbuda | goto end }
  if (*.ar iswm $1 ) { set -u10 %coun Argentina | goto end }
  if (*.am iswm $1 ) { set -u10 %coun Armenia | goto end }
  if (*.aw iswm $1 ) { set -u10 %coun Aruba | goto end }
  if (*.ac iswm $1 ) { set -u10 %coun Ascension Island | goto end }
  if (*.au iswm $1 ) { set -u10 %coun Australia | goto end }
  if (*.at iswm $1 ) { set -u10 %coun Austria | goto end }
  if (*.az iswm $1 ) { set -u10 %coun Azerbaijan | goto end }
  if (*.bs iswm $1 ) { set -u10 %coun Bahamas | goto end }
  if (*.bh iswm $1 ) { set -u10 %coun Bahrain | goto end }
  if (*.bd iswm $1 ) { set -u10 %coun Bangladesh | goto end }
  if (*.bb iswm $1 ) { set -u10 %coun Barbados | goto end }
  if (*.by iswm $1 ) { set -u10 %coun Belarus | goto end }
  if (*.be iswm $1 ) { set -u10 %coun Belgium | goto end }
  if (*.bz iswm $1 ) { set -u10 %coun Belize | goto end }
  if (*.bj iswm $1 ) { set -u10 %coun Benin | goto end }
  if (*.bm iswm $1 ) { set -u10 %coun Bermuda | goto end }
  if (*.bt iswm $1 ) { set -u10 %coun Bhutan | goto end }
  if (*.bo iswm $1 ) { set -u10 %coun Bolivia | goto end }
  if (*.ba iswm $1 ) { set -u10 %coun Bosnia and Herzegowina | goto end }
  if (*.bw iswm $1 ) { set -u10 %coun Botswana | goto end }
  if (*.bv iswm $1 ) { set -u10 %coun Bouvet Island | goto end }
  if (*.br iswm $1 ) { set -u10 %coun Brazil | goto end }
  if (*.io iswm $1 ) { set -u10 %coun British Indian Ocean Territory | goto end }
  if (*.bn iswm $1 ) { set -u10 %coun Brunei Darussalam | goto end }
  if (*.bg iswm $1 ) { set -u10 %coun Bulgaria | goto end }
  if (*.bf iswm $1 ) { set -u10 %coun Burkina Faso | goto end }
  if (*.bi iswm $1 ) { set -u10 %coun Burundi | goto end }
  if (*.kh iswm $1 ) { set -u10 %coun Cambodia | goto end }
  if (*.cm iswm $1 ) { set -u10 %coun Cameroon | goto end }
  if (*.ca iswm $1 ) { set -u10 %coun Canada | goto end }
  if (*.ky iswm $1 ) { set -u10 %coun Cayman Islands | goto end }
  if (*.cv iswm $1 ) { set -u10 %coun Cape Verde | goto end }
  if (*.cf iswm $1 ) { set -u10 %coun Central African Republic | goto end }
  if (*.td iswm $1 ) { set -u10 %coun Chad | goto end }
  if (*.cl iswm $1 ) { set -u10 %coun Chile | goto end }
  if (*.cn iswm $1 ) { set -u10 %coun China | goto end }
  if (*.cx iswm $1 ) { set -u10 %coun Christmas Island | goto end }
  if (*.cc iswm $1 ) { set -u10 %coun Cocos (Keeling) Islands | goto end }
  if (*.co iswm $1 ) { set -u10 %coun Columbia | goto end }
  if (*.com iswm $1 ) { set -u10 %coun Commercial (Unknown) | goto end } 
  if (*.km iswm $1 ) { set -u10 %coun Comoros | goto end }
  if (*.cd iswm $1 ) { set -u10 %coun Democratic People's Republic of Congo | goto end }
  if (*.cg iswm $1 ) { set -u10 %coun Republic Of Congo | goto end }
  if (*.ck iswm $1 ) { set -u10 %coun Cook Islands | goto end }
  if (*.cr iswm $1 ) { set -u10 %coun Costa Rica | goto end }
  if (*.ci iswm $1 ) { set -u10 %coun Cote D'Ivoire | goto end }
  if (*.hr iswm $1 ) { set -u10 %coun Croatia/Hrvatska | goto end }
  if (*.cu iswm $1 ) { set -u10 %coun Cuba | goto end }
  if (*.cy iswm $1 ) { set -u10 %coun Cyprus | goto end }
  if (*.cz iswm $1 ) { set -u10 %coun Czech Republic | goto end }
  if (*.dk iswm $1 ) { set -u10 %coun Denmark | goto end }
  if (*.dj iswm $1 ) { set -u10 %coun Djibouti | goto end }
  if (*.dm iswm $1 ) { set -u10 %coun Dominica | goto end }
  if (*.do iswm $1 ) { set -u10 %coun Dominican Republic | goto end }
  if (*.tp iswm $1 ) { set -u10 %coun East Timor | goto end }
  if (*.ec iswm $1 ) { set -u10 %coun Ecuador | goto end }
  if (*.edu iswm $1 ) { set -u10 %coun Educational Institution | goto end }
  if (*.eg iswm $1 ) { set -u10 %coun Egypt | goto end }
  if (*.sv iswm $1 ) { set -u10 %coun El Salvador | goto end }
  if (*.gq iswm $1 ) { set -u10 %coun Equatorial Guinea | goto end }
  if (*.er iswm $1 ) { set -u10 %coun Eritrea | goto end }
  if (*.ee iswm $1 ) { set -u10 %coun Estonia | goto end }
  if (*.et iswm $1 ) { set -u10 %coun Ethiopia | goto end }
  if (*.fk iswm $1 ) { set -u10 %coun Falkland Islands (Malvinas) | goto end }
  if (*.fo iswm $1 ) { set -u10 %coun Faroe Islands | goto end }
  if (*.fj iswm $1 ) { set -u10 %coun Fiji | goto end }
  if (*.fi iswm $1 ) { set -u10 %coun Finland | goto end }
  if (*.fr iswm $1 ) { set -u10 %coun France | goto end }
  if (*.fx iswm $1 ) { set -u10 %coun Metropolitan France | goto end }
  if (*.gf iswm $1 ) { set -u10 %coun French Guiana | goto end }
  if (*.pf iswm $1 ) { set -u10 %coun French Polynesia | goto end }
  if (*.tf iswm $1 ) { set -u10 %coun French Southern Terrirories | goto end }
  if (*.ga iswm $1 ) { set -u10 %coun Gabon | goto end }
  if (*.gm iswm $1 ) { set -u10 %coun Gambania | goto end }
  if (*.ge iswm $1 ) { set -u10 %coun Georgia | goto end }
  if (*.de iswm $1 ) { set -u10 %coun Germany | goto end }
  if (*.gh iswm $1 ) { set -u10 %coun Ghana | goto end }
  if (*.gi iswm $1 ) { set -u10 %coun Gibraltar | goto end }
  if (*.gr iswm $1 ) { set -u10 %coun Greece | goto end }
  if (*.gl iswm $1 ) { set -u10 %coun Greenland | goto end }
  if (*.gd iswm $1 ) { set -u10 %coun Grenada | goto end }
  if (*.gp iswm $1 ) { set -u10 %coun Guadeloupe | goto end }
  if (*.gu iswm $1 ) { set -u10 %coun Guam | goto end }
  if (*.gt iswm $1 ) { set -u10 %coun Guatemala | goto end }
  if (*.gg iswm $1 ) { set -u10 %coun Guernsey | goto end }
  if (*.gn iswm $1 ) { set -u10 %coun Guinea | goto end }
  if (*.gw iswm $1 ) { set -u10 %coun Guinea-Bissau | goto end }
  if (*.gy iswm $1 ) { set -u10 %coun Guyana | goto end }
  if (*.ht iswm $1 ) { set -u10 %coun Haiti | goto end }
  if (*.hm iswm $1 ) { set -u10 %coun Heard and McDonald Islands | goto end }
  if (*.va iswm $1 ) { set -u10 %coun Holy See (Vatican City State) | goto end }
  if (*.hn iswm $1 ) { set -u10 %coun Honduras | goto end }
  if (*.hk iswm $1 ) { set -u10 %coun Hong Kong | goto end }
  if (*.hu iswm $1 ) { set -u10 %coun Hungary | goto end }
  if (*.is iswm $1 ) { set -u10 %coun Iceland | goto end }
  if (*.in iswm $1 ) { set -u10 %coun India | goto end }
  if (*.id iswm $1 ) { set -u10 %coun Indonesia | goto end }
  if (*.ir iswm $1 ) { set -u10 %coun Iran (Islamic Republic Of) | goto end }
  if (*.iq iswm $1 ) { set -u10 %coun Iraq | goto end }
  if (*.ie iswm $1 ) { set -u10 %coun Ireland | goto end }
  if (*.im iswm $1 ) { set -u10 %coun Isle of Man | goto end }
  if (*.il iswm $1 ) { set -u10 %coun Israel | goto end }
  if (*.it iswm $1 ) { set -u10 %coun Italy | goto end } 
  if (*.jm iswm $1 ) { set -u10 %coun Jamaica | goto end }
  if (*.jp iswm $1 ) { set -u10 %coun Japan | goto end }
  if (*.je iswm $1 ) { set -u10 %coun Jersey | goto end }
  if (*.jo iswm $1 ) { set -u10 %coun Jordan | goto end }
  if (*.kz iswm $1 ) { set -u10 %coun Kazakhstan | goto end }
  if (*.ke iswm $1 ) { set -u10 %coun Kenya | goto end }
  if (*.ki iswm $1 ) { set -u10 %coun Kiribati | goto end }
  if (*.kp iswm $1 ) { set -u10 %coun Democratic People's Republic of Korea | goto end }
  if (*.kr iswm $1 ) { set -u10 %coun Republic Of Korea | goto end }
  if (*.kw iswm $1 ) { set -u10 %coun Kuwait | goto end }
  if (*.kg iswm $1 ) { set -u10 %coun Kyrgzstan | goto end }
  if (*.la iswm $1 ) { set -u10 %coun People's Democratic Republic Of Lao | goto end }
  if (*.lv iswm $1 ) { set -u10 %coun Latvia | goto end }
  if (*.lb iswm $1 ) { set -u10 %coun Lebanon | goto end }
  if (*.ls iswm $1 ) { set -u10 %coun Lesotho | goto end }
  if (*.lr iswm $1 ) { set -u10 %coun Liberia | goto end }
  if (*.ly iswm $1 ) { set -u10 %coun Libyan Arab Jamahiriya | goto end }
  if (*.li iswm $1 ) { set -u10 %coun Liechtenstein | goto end }
  if (*.lt iswm $1 ) { set -u10 %coun Lithuania | goto end }
  if (*.lu iswm $1 ) { set -u10 %coun Luxembourg | goto end }
  if (*.mo iswm $1 ) { set -u10 %coun Macau | goto end }
  if (*.mk iswm $1 ) { set -u10 %coun Macedonia | goto end }
  if (*.mg iswm $1 ) { set -u10 %coun Madagascar | goto end }
  if (*.mw iswm $1 ) { set -u10 %coun Malawi | goto end }
  if (*.my iswm $1 ) { set -u10 %coun Malaysia | goto end }
  if (*.mv iswm $1 ) { set -u10 %coun Maldives | goto end }
  if (*.ml iswm $1 ) { set -u10 %coun Mali | goto end }
  if (*.mt iswm $1 ) { set -u10 %coun Malta | goto end }
  if (*.mh iswm $1 ) { set -u10 %coun Marshall Islands | goto end }
  if (*.mq iswm $1 ) { set -u10 %coun Martinique | goto end }
  if (*.mr iswm $1 ) { set -u10 %coun Mauritania | goto end }
  if (*.mu iswm $1 ) { set -u10 %coun Mauritius | goto end }
  if (*.yt iswm $1 ) { set -u10 %coun Mayotte | goto end }
  if (*.mx iswm $1 ) { set -u10 %coun Mexico | goto end }
  if (*.fm iswm $1 ) { set -u10 %coun Federal States of Micronesia | goto end }
  if (*.md iswm $1 ) { set -u10 %coun Republic Of Moldova | goto end }
  if (*.mc iswm $1 ) { set -u10 %coun Monaco | goto end }
  if (*.mn iswm $1 ) { set -u10 %coun Mongolia | goto end }
  if (*.ms iswm $1 ) { set -u10 %coun Monsterrat | goto end }
  if (*.ma iswm $1 ) { set -u10 %coun Morocco | goto end }
  if (*.mz iswm $1 ) { set -u10 %coun Mozambique | goto end }
  if (*.mm iswm $1 ) { set -u10 %coun Myanmar | goto end }
  if (*.na iswm $1 ) { set -u10 %coun Nambia | goto end }
  if (*.nr iswm $1 ) { set -u10 %coun Nauru | goto end }
  if (*.np iswm $1 ) { set -u10 %coun Nepal | goto end }
  if (*.nl iswm $1 ) { set -u10 %coun Netherlands | goto end }
  if (*.an iswm $1 ) { set -u10 %coun Netherlands Antilles | goto end }
  if (*.nc iswm $1 ) { set -u10 %coun New Calendonia | goto end }
  if (*.nz iswm $1 ) { set -u10 %coun New Zealand | goto end }
  if (*.ni iswm $1 ) { set -u10 %coun Nicaragua | goto end }
  if (*.ne iswm $1 ) { set -u10 %coun Niger | goto end }
  if (*.net iswm $1 ) { set -u10 %coun Network (Unknown) | goto end }
  if (*.ng iswm $1 ) { set -u10 %coun Nigeria | goto end }
  if (*.nu iswm $1 ) { set -u10 %coun Niue | goto end }
  if (*.nf iswm $1 ) { set -u10 %coun Norfolk Island | goto end }
  if (*.mp iswm $1 ) { set -u10 %coun Northern Mariana Islands | goto end }
  if (*.no iswm $1 ) { set -u10 %coun Norway | goto end }
  if (*.om iswm $1 ) { set -u10 %coun Oman | goto end }
  if (*.pk iswm $1 ) { set -u10 %coun Pakistan | goto end }
  if (*.pw iswm $1 ) { set -u10 %coun Palau | goto end }
  if (*.pa iswm $1 ) { set -u10 %coun Panama | goto end }
  if (*.pg iswm $1 ) { set -u10 %coun Papua New Guinea | goto end }
  if (*.py iswm $1 ) { set -u10 %coun Paraguay | goto end }
  if (*.pe iswm $1 ) { set -u10 %coun Peru | goto end }
  if (*.ph iswm $1 ) { set -u10 %coun Phillippines | goto end }
  if (*.pn iswm $1 ) { set -u10 %coun Pitcairn | goto end }
  if (*.pl iswm $1 ) { set -u10 %coun Poland | goto end }
  if (*.ot iswm $1 ) { set -u10 %coun Portugal | goto end }
  if (*.org iswm $1 ) { set -u10 %coun Organization (Unknown) | goto end }
  if (*.pr iswm $1 ) { set -u10 %coun Puerto Rico | goto end }
  if (*.qa iswm $1 ) { set -u10 %coun Qatar | goto end }
  if (*.re iswm $1 ) { set -u10 %coun Reunion | goto end }
  if (*.ro iswm $1 ) { set -u10 %coun Romania | goto end }
  if (*.ru iswm $1 ) { set -u10 %coun Russian Federation | goto end }
  if (*.rw iswm $1 ) { set -u10 %coun Rwanda | goto end }
  if (*.kn iswm $1 ) { set -u10 %coun Saint Kitts and Nevis | goto end }
  if (*.lc iswm $1 ) { set -u10 %coun Saint Lucia | goto end }
  if (*.vc iswm $1 ) { set -u10 %coun Saint Vincent and the Grenadines | goto end }
  if (*.ws iswm $1 ) { set -u10 %coun Samoa | goto end }
  if (*.sm iswm $1 ) { set -u10 %coun San Marino | goto end }
  if (*.st iswm $1 ) { set -u10 %coun Sao Tome and Principe | goto end }
  if (*.sa iswm $1 ) { set -u10 %coun Saudi Arabia | goto end }
  if (*.sn iswm $1 ) { set -u10 %coun Senegal | goto end }
  if (*.sc iswm $1 ) { set -u10 %coun Seychelles | goto end }
  if (*.sl iswm $1 ) { set -u10 %coun Sierra Leone | goto end }
  if (*.sg iswm $1 ) { set -u10 %coun Singapore | goto end }
  if (*.sk iswm $1 ) { set -u10 %coun Slovakia (Slovak Republic) | goto end }
  if (*.si iswm $1 ) { set -u10 %coun Slovenia | goto end }
  if (*.sb iswm $1 ) { set -u10 %coun Soloman Islands | goto end }
  if (*.so iswm $1 ) { set -u10 %coun Somalia | goto end }
  if (*.za iswm $1 ) { set -u10 %coun South Africa | goto end }
  if (*.gs iswm $1 ) { set -u10 %coun South Georgia and Sandwich Isl. | goto end }
  if (*.es iswm $1 ) { set -u10 %coun Spain | goto end }
  if (*.lk iswm $1 ) { set -u10 %coun Sri Lanka | goto end }
  if (*.sh iswm $1 ) { set -u10 %coun St. Helena | goto end }
  if (*.pm iswm $1 ) { set -u10 %coun St. Pierre and Miquelon | goto end }
  if (*.sd iswm $1 ) { set -u10 %coun Sudan | goto end }
  if (*.sr iswm $1 ) { set -u10 %coun Suriname | goto end }
  if (*.sj iswm $1 ) { set -u10 %coun Svalbard and Jan Mayen Isl. | goto end }
  if (*.sz iswm $1 ) { set -u10 %coun Swaziland | goto end }
  if (*.se iswm $1 ) { set -u10 %coun Sweden | goto end }
  if (*.ch iswm $1 ) { set -u10 %coun Switzerland | goto end }
  if (*.sy iswm $1 ) { set -u10 %coun Syrian arab Republic | goto end }
  if (*.tw iswm $1 ) { set -u10 %coun Taiwan | goto end }
  if (*.tj iswm $1 ) { set -u10 %coun Tajikistan | goto end }
  if (*.tz iswm $1 ) { set -u10 %coun Tanzania | goto end }
  if (*.th iswm $1 ) { set -u10 %coun Thailand | goto end }
  if (*.tg iswm $1 ) { set -u10 %coun Togo | goto end }
  if (*.tk iswm $1 ) { set -u10 %coun Tokelau | goto end }
  if (*.to iswm $1 ) { set -u10 %coun Tonga | goto end }
  if (*.tt iswm $1 ) { set -u10 %coun Trinidad and Tobago | goto end }
  if (*.tn iswm $1 ) { set -u10 %coun Tunisia | goto end }
  if (*.tr iswm $1 ) { set -u10 %coun Turkey | goto end }
  if (*.tm iswm $1 ) { set -u10 %coun Turkmenistan | goto end }
  if (*.tc iswm $1 ) { set -u10 %coun Turks and Ciacos Islands | goto end }
  if (*.tv iswm $1 ) { set -u10 %coun Tuvalu | goto end }
  if (*.ug iswm $1 ) { set -u10 %coun Uganda | goto end }
  if (*.ua iswm $1 ) { set -u10 %coun Ukraine | goto end }
  if (*.ae iswm $1 ) { set -u10 %coun United Arab Emirates | goto end }
  if (*.gb iswm $1 ) { set -u10 %coun United Kingdom | goto end }
  if (*.us iswm $1 ) { set -u10 %coun United States | goto end }
  if (*.uk iswm $1 ) { set -u10 %coun United Kingdom | goto end }
  if (*.um iswm $1 ) { set -u10 %coun United States Minor Outlying Islands | goto end }
  if (*.uy iswm $1 ) { set -u10 %coun Uruguay | goto end }
  if (*.uz iswm $1 ) { set -u10 %coun Uzbekistan | goto end }
  if (*.vu iswm $1 ) { set -u10 %coun Vanuatu | goto end }
  if (*.ve iswm $1 ) { set -u10 %coun Venezuela | goto end }
  if (*.vn iswm $1 ) { set -u10 %coun Viet Nam | goto end }
  if (*.vg iswm $1 ) { set -u10 %coun Virgin Islands (British) | goto end }
  if (*.vi iswm $1 ) { set -u10 %coun Virgin Islands (United States) | goto end }
  if (*.wf iswm $1 ) { set -u10 %coun Wallis and Futuna Islands | goto end }
  if (*.eh iswm $1 ) { set -u10 %coun Western Sahara | goto end }
  if (*.ye iswm $1 ) { set -u10 %coun Yemen | goto end }
  if (*.yu iswm $1 ) { set -u10 %coun Yugoslavia | goto end }
  if (*.zr iswm $1 ) { set -u10 %coun Zaire | goto end }
  if (*.zm iswm $1 ) { set -u10 %coun Zambia | goto end }
  if (*.zw iswm $1 ) { set -u10 %coun Zimbabwe | goto end }
  if (*.*0 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*1 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*2 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*3 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*4 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*5 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*6 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*7 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*8 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*9 iswm $1 ) { set -u10 %coun Not Available | goto end }
  if (*.*= iswm $1 ) { set -u10 %coun Not Available | goto end }
  if ($1 == $null ) { set -u10 %coun Not Available | goto end }
  if (*.* [ $+  [ $chr(42) ] ] iswm $1 ) { set -u10 %coun Not Available }
  else set -u10 %origin Not Available
  :end
  return %coun
}
alias nc { set -u10 %origin $coun($1) }


Usage:/whois NickName
To Display whois statistic in query on double click simply go to: File > Options (Alt + O) > Mouse > Query: /whois $1
grin
Posted By: xamp

Re: how to do this. - 04/07/03 07:58 AM

thanks this was the thing what i was looking for smile))
Posted By: SladeKraven

Re: how to do this. - 04/07/03 08:02 AM

No problem. grin
Posted By: The_Game

Re: how to do this. - 04/07/03 08:26 AM

Holy Hell! LOL got the zip codes as well? LOL
Posted By: SladeKraven

Re: how to do this. - 04/07/03 08:36 AM

I might have. Who wants to know? grin
Posted By: xamp

Re: how to do this. - 04/07/03 08:37 AM

how i get whois on query also? smile
Posted By: The_Game

Re: how to do this. - 04/07/03 08:41 AM

Just curious is all smile
Posted By: SladeKraven

Re: how to do this. - 04/07/03 08:45 AM

You could use.
on *:OPEN:*:?: { whois $nick }
(Recommended)
From the help file.
The on OPEN event triggers for various events relating to the opening of a window of different types of windows.
on *:TEXT:*:?: { whois $nick }
Which would trigger everytime someone sends you a private message.
(Not recommended).
grin
Posted By: SladeKraven

Re: how to do this. - 04/07/03 08:47 AM

In that case no I don't have Zip/Post codes. smile
Posted By: The_Game

Re: how to do this. - 04/07/03 08:53 AM

LOL
Posted By: xamp

Re: how to do this. - 04/07/03 08:54 AM

can tell also how i can sort channels like this orde #@ #v #non op or non voice
and althapetic too smile
Posted By: SladeKraven

Re: how to do this. - 04/07/03 09:21 AM

I am not sure if you can sort the #@ alphabetically because when you join a channel. That channel goes at the beginning of raw 319.
For example, you're in @#Help and @#Services. Then you join #mIRC.
Now it would look like @#mIRC #@Help #@Services.
Though I could be wrong, it might be scriptable but what would I know. grin
(Edited post as I had a UBB code error.)
Posted By: xamp

Re: how to do this. - 04/07/03 09:25 AM

who i can set the order @, V, normal =)
Posted By: xamp

Re: how to do this. - 04/07/03 09:29 AM

and why ur script doesnt show the idle time at all? frown


this doesnt work either
echo $color(whois text) -a $chr(124) idle: %whoisidle
Posted By: SladeKraven

Re: how to do this. - 04/07/03 09:33 AM

Works for me perfectly.
Whois on Synth[ZZzzZZ]
Name: DarkOne
Address: [email]DarkOne@=YSdowil-6051.elephant.dialup.pol.co.uk[/email]
Channels: #wwe #Slash-Join
Origin: United Kingdom
Server: northwest.ar.us.damaged.net
Server Info: Damaged Networks Chat
Away: (Sleeping.)
Idletime: 8mins 31secs
Status: Normal User
End of Whois on Synth[ZZzzZZ]
Posted By: xamp

Re: how to do this. - 04/07/03 09:40 AM

* Group(s) enabled
Whois on werssu
Name: [d4921e62] http://chat.ircnet.org/
Address: ~d4921e62@chat.ircnet.org
Channels: #hmposse
Origin: Organization (Unknown)
Server: ircnet.easynet.co.uk
Server Info: Easynet
Away: User is not away
Status: Normal User
End of Whois on werssu

;<<<<<<
is there something wich i need to change like whois $1 or something,

and how i can remove that groups thing (in the 1.line) smirk
Posted By: SladeKraven

Re: how to do this. - 04/07/03 09:51 AM

Well you tracked me down on the server I idle on and the idle time works now. Now for the groups thing.
alias whois {
unset %whois*
.enable #whois | set %temp.whoisnick $1 | whois $1-
}

Should work.
Posted By: SladeKraven

Re: how to do this. - 04/07/03 11:51 AM

xamp: that should be
Code:
on *:OPEN:?:*: { 
  whois $nick
}

Sorry about that. grin
Posted By: lammkott

Re: how to do this. - 04/07/03 12:15 PM

Change the /whois alias so that it sends the nickname twice

For example:
/whois lammkott lammkott
Posted By: SladeKraven

Re: how to do this. - 04/07/03 05:42 PM

My one works fine. grin
Posted By: KingTomato

Re: how to do this. - 04/07/03 11:53 PM

One complaint tho, no phone number--i look for that in a whois script >:D
Posted By: SladeKraven

Re: how to do this. - 05/07/03 09:35 AM

Lmfao, I am sure I could squeeze that in somewhere. grin
Posted By: KingTomato

Re: how to do this. - 05/07/03 03:19 PM

could u match area code with the town/state/jurisdiction? grin
© 2020 mIRC Discussion Forums