Skip to content

Commit

Permalink
Update links and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
vBm committed Jul 29, 2014
1 parent 8ee2db7 commit 35d75b2
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions omertaPrices.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Title : Omerta Prices
# Name : omertaPrices.tcl
# Author : vBm ( [email protected] )
# Version : 0.7
# Version : 0.8
#########################################################
# Information:
# Script has been written for sole purpose
Expand All @@ -27,10 +27,11 @@
# that will give us always correct prices even if there's some errors
# on page that displays 'em
# 0.5 - Removed obsolete beta link
# 0.6 - Rewritten script totaly to cope with new API
# 0.6 - Rewritten script totally to cope with new API
# Removed all obsolete version links
# added checker for http errors
# 0.7 - Added back .dm link
# 0.8 - Update links
#
#########################################################
#
Expand All @@ -40,14 +41,12 @@
package require http
package require tdom


# Public commands that will trigger the script.
#
# The prefix goes before like '!' or '.'

set cmdprefix "!"


# The suffix comes after like 'prices' or 'p'

set cmdsuffix "p"
Expand All @@ -60,14 +59,10 @@ bind pub - $cmdprefix$cmdsuffix show:prices
proc show:prices { nick host hand chan arg } {
if { $arg == "" } { set url "http://www.barafranca.com/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".com" }
if { $arg == "com" } { set url "http://www.barafranca.com/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".com" }
if { $arg == "dm" } { set url "http://dm.barafranca.com/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".dm" }
if { $arg == "dm" } { set url "http://omerta.dm/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".dm" }
if { $arg == "nl" } { set url "http://www.barafranca.nl/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".nl" }
if { $arg == "br" } { set url "http://www.barafranca.com.br/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".com.br" }
if { $arg == "pt" } { set url "http://www.barafranca.com.pt/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".com.pt" }
if { $arg == "de" } { set url "http://www.barafranca.de/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".de" }
if { $arg == "fr" } { set url "http://www.barafranca.fr/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".fr" }
if { $arg == "tr" } { set url "http://www.barafranca.gen.tr/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".gen.tr" }
if { $arg == "no" } { set url "http://www.barafranca.no/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".no" }
if { $arg == "pt" } { set url "http://omerta.pt/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".pt" }
if { $arg == "tr" } { set url "http://www.barafranca.gen.tr/BeO/webroot/index.php?module=API&action=smuggling_prices"; set version ".tr" }

if {[catch {set tok [::http::geturl $url -timeout 10000]} msg]} {
putlog "oops get:url error:: $msg"
Expand Down

0 comments on commit 35d75b2

Please sign in to comment.