|
|
#1 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
NOTE: BitchX Classic 1.0.4 is now bundled with NNS.
Introduction: Classic BitchX is your standard BitchX poser theme for NNS4. To experience CBX in its full glory, you must add the following code to ownstuff.nns: Code:
; Begin Classic BitchX required definitions.
alias country {
if (!$hget(country)) {
hmake country $calc($lines(scripts/tables/country.tbl)-1)
hload -i country scripts/tables/country.tbl
}
return $iif($hget(country,$1),$v1,unknown)
}
; End Classic BitchX required definitions.
![]() Download: http://blackwind.org/download/k8GYkqqqq ... tK_mlG6rrg. Barring any major problems, it's likely that this will be the first and last release. Enjoy!
__________________
/bw |
|
|
|
|
|
#2 |
|
Junior Citizen
![]() Join Date: Jan 2006
Posts: 75
|
Why is that extra code needed? nnscripts has already such country location int or am i wrong?
|
|
|
|
|
|
#3 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
It facilitates a local BX-style country lookup for whois/whowas, so as to prevent any slowdown that would be incurred utilizing the standard NNS remote lookup method.
__________________
/bw |
|
|
|
|
|
#4 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
1.0.1 released.
__________________
/bw |
|
|
|
|
|
#5 |
|
Hardcore Citizen
![]() Join Date: Feb 2003
Location: .de
Posts: 1,305
|
/me thinks of hash tables...
|
|
|
|
|
|
#6 | |
|
NNScript Staff
|
Quote:
__________________
mp3ad+ 2.41 (advertise Winamp, foobar, QCD, iTunes, Apollo, MediaMonkey, AIMP and The KMPlayer song info) Server browser for NNScript |
|
|
|
|
|
|
#7 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
The "country" function is something a friend of mine converted straight from a XiRCON script many, many years back. If the code bothers you, feel free to rewrite it (or, better yet, request a similar function be included in NNS itself). For my purposes, it does the job it was written to do, and that's good enough for me.
__________________
/bw |
|
|
|
|
|
#8 |
|
Citizen
![]() Join Date: Feb 2004
Posts: 165
|
Thx looks nice
Oldskool 8)
|
|
|
|
|
|
#9 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
Glad to see *someone* appreciates it.
![]() 1.0.2 released.
__________________
/bw |
|
|
|
|
|
#10 |
|
Hardcore Citizen
![]() Join Date: Feb 2003
Location: .de
Posts: 1,305
|
download the hash table or save this as country.tbl in your mirc folder:
Code:
[hashtable] AD=Andorra AE=United Arab Emirates AF=Afghanistan AG=Antigua/Barbuda AI=Anguilla AL=Albania AM=Armenia AN=Netherlands Antilles AO=Angola AQ=Antarctica AR=Argentina AS=American Samoa AT=Austria AU=Australia AW=Aruba AZ=Azerbaijan BA=Bosnia BB=Barbados BD=Bangladesh BE=Belgium BF=Burkina Faso BG=Bulgaria BH=Bahrain BI=Burundi BJ=Benin BM=Bermuda BN=Brunei Darussalam BO=Bolivia BR=Brazil BS=Bahamas BT=Bhutan BV=Bouvet Island BW=Botswana BY=Belarus BZ=Belize CA=Canada CC=Cocos Islands CF=Central African Republic CG=Congo CH=Switzerland CI=The Cote d'Ivoire CK=Cook Islands CL=Chile CM=Cameroon CN=China CO=Colombia CR=Costa Rica CS=Former Czechoslovakia CU=Cuba CV=Cape Verde CX=Christmas Island CY=Cyprus CZ=Czech Republic DE=Germany DJ=Djibouti DK=Denmark DM=Frominica DO=Frominican Republic DZ=Algeria EC=Ecuador EE=Estonia EG=Egypt EH=Western Sahara ER=Eritrea ES=Spain ET=Ethiopia FI=Finland FJ=Fiji FK=Falkland Islands FM=Micronesia FO=Faroe Islands FR=France FX=France, Metropolitan GA=Gabon GB=Great Britain GD=Grenada GE=Georgia GF=French Guiana GH=Ghana GI=Gibraltar GL=Greenland GM=Gambia GN=Guinea GP=Guadeloupe GQ=Equatorial Guinea GR=Greece GS=The St. Georgia/St. Sandwich Islands GT=Guatemala GU=Guam GW=Guinea-Bissau GY=Guyana HK=Hong Kong HM=The Heard/Mcdonald Islands HN=Honduras HR=Croatia HT=Haiti HU=Hungary ID=Indonesia IE=Ireland IL=Israel IN=India IO=British Indian Ocean Territory IQ=Iraq IR=Iran IS=Iceland IT=Italy JM=Jamaica JO=Jordan JP=Japan KE=Kenya KG=Kyrgyzstan KH=Cambodia KI=Kiribati KM=Comoros KN=St. Kitts/Nevis KP=North Korea KR=South Korea KW=Kuwait KY=Cayman Islands KZ=Kazakhstan LA=Laos LB=Lebanon LC=Saint Lucia LI=Liechtenstein LK=Sri Lanka LR=Liberia LS=Lesotho LT=Lithuania LU=Luxembourg LV=Latvia LY=Libya MA=Morocco MC=Monaco MD=Moldova MG=Madagascar MH=Marshall Islands MK=Macedonia ML=Mali MM=Myanmar MN=Mongolia MO=Macau MP=Northern Mariana Islands MQ=Martinique MR=Mauritania MS=Montserrat MT=Malta MU=Mauritius MV=Maldives MW=Malawi MX=Mexico MY=Malaysia MZ=Mozambique NA=Namibia NC=New Caledonia NE=Niger NF=Norfolk Island NG=Nigeria NI=Nicaragua NL=Netherlands NO=Norway NP=Nepal NR=Nauru NT=Neutral Zone NU=Niue NZ=New Zealand OM=Oman PA=Panama PE=Peru PF=French Polynesia PG=Papua New Guinea PH=Philippines PK=Pakistan PL=Poland PM=St. Pierre/Miquelon PN=Pitcairn PR=Puerto Rico PT=Portugal PW=Palau PY=Paraguay QA=Qatar RE=Reunion RO=Romania RU=Russian Federation RW=Rwanda SA=Saudi Arabia SB=Solomon Islands SC=Seychelles SD=Sudan SE=Sweden SG=Singapore SH=St. Helena SI=Slovenia SJ=Svalbard/Jan Mayen Islands SK=Slovak Republic SL=Sierra Leone SM=San Marino SN=Senegal SO=Somalia SR=Suriname ST=Sao Tome/Principe SU=Former USSR SV=El Salvador SY=Syria SZ=Swaziland TC=The Turks/Caicos Islands TD=Chad TF=French Southern Territories TG=Togo TH=Thailand TJ=Tajikistan TK=Tokelau TM=Turkmenistan TN=Tunisia TO=Tonga TP=East Timor TR=Turkey TT=Trinidad/Tobago TV=Tuvalu TW=Taiwan TZ=Tanzania UA=Ukraine UG=Uganda UK=United Kingdom UM=US Minor Outlying Islands US=United States UY=Uruguay UZ=Uzbekistan VA=Vatican City State VC=St. Vincent/The Grenadines VE=Venezuela VG=British Virgin Islands VI=US Virgin Islands VN=Vietnam VU=Vanuatu WF=The Wallis/Futuna Islands WS=Samoa YE=Yemen YT=Mayotte YU=Yugoslavia ZA=South Africa ZM=Zambia ZR=Zaire ZW=Zimbabwe COM=Internic Commercial EDU=Educational Institution GOV=Government INT=International MIL=Military NET=Internic Network ORG=Internic Non-Profit Organization RPA=Old-Style Arpanet ATO=A NATO Field Code:
country {
if (!$hget(country)) {
hmake country $calc($lines(country.tbl)-1)
hload -i country country.tbl
}
return $iif($hget(country,$1),$v1,unknown)
}
|
|
|
|
|
|
#11 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
Zip and post updated with TiFighter's additions. Thanks.
__________________
/bw |
|
|
|
|
|
#12 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
1.0.3 released.
__________________
/bw |
|
|
|
|
|
#13 |
|
Newbie Citizen
![]() Join Date: Apr 2006
Location: Canada
Posts: 14
|
CBX is now included with NNS4.2, but it appears the developers neglected to include the country alias and hashtable. If you desire that functionality, download the newly updated Classic BitchX 1.0.5 above.
__________________
/bw |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|