dialog IP_Locator { title "Ip Locator" size -1 -1 96 144 option dbu text "Country:", 1, 0 8 33 8, right text "Region:", 2, 0 16 33 8, right text "City:", 3, 0 24 33 8, right text "Certainty:", 4, 0 32 33 8, right text "Latitude:", 5, 0 40 33 8, right text "Longitude:", 6, 0 48 33 8, right text "Time Zone:", 7, 0 56 33 8, right text "Population:", 8, 0 64 33 8, right text "Proxy?:", 9, 0 72 33 8, right text "Currency:", 10, 0 80 33 8, right text "", 11, 40 8 57 8 text "", 12, 40 16 57 8 text "", 13, 40 24 57 8 text "", 14, 40 32 57 8 text "", 15, 40 40 57 8 text "", 16, 40 48 57 8 text "", 17, 40 56 57 8 text "", 18, 40 64 57 8 text "", 19, 40 72 57 8 text "", 20, 40 80 57 8 text "IP Address:", 21, 0 120 33 8, right edit "", 22, 40 120 54 10 button "Find", 23, 65 131 29 12 text "", 24, 0 0 97 8, center icon 25, 40 92 47 23 text "Flag:", 26, 0 98 33 8, right check "Check for Drones", 27, 2 131 58 10 } On *:dialog:Ip_Locator:Sclick:23: { if ($gettok($did(ip_locator,22).text,0,46) != 4) { did -a Ip_Locator 24 You must enter a ip address .timer 1 3 did -a Ip_Locator 24 return } else { did -a Ip_Locator 24 IpLocator $did(ip_locator,22).text if ($did(Ip_Locator,27).state == 1) { dronebl $did(ip_locator,22).text } } } On *:dialog:Ip_Locator:init:*: { IpLocator $ip did -a Ip_locator 22 $ip } alias IpLocator.timeout { if (%IpLocator.chan == dialog) && ($dialog(IP_Locator)) { did -a Ip_locator 24 Connection Timed Out! .timer 1 3 did -a Ip_Locator 24 } else { echo -a Connection Timed Out! } IpLocator.clear } alias IpLocator.clear { unset %IpLocator* sockclose IpLocator .timer-IpLocator off halt } alias IpLocator { set %IpLocator.nick $me set %IpLocator.chan dialog sockclose IpLocator set %IpLocatorurl $+(/IpLocator.htm?GetLocation&IpAddress=,$1) set %IpLocatorsite www.geobytes.com sockopen IpLocator %IpLocatorsite 80 .timer-IpLocator 1 10 IpLocator.timeout } on *:sockopen:IpLocator: { sockwrite -n $sockname GET %IpLocatorurl HTTP/1.1 sockwrite -n $sockname Host: %IpLocatorsite $+ $CRLF $+ $CRLF } on *:sockread:IpLocator: { if ($sockerr > 0) { echo -a IpLocator >sock error< | IpLocator.clear } else { var %IpLocatorvar | sockread %IpLocatorvar if (