Skip to content

Commit

Permalink
Small manual tweaks. Removed unnecessary return calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Mar 29, 2010
1 parent 84e53e7 commit 5c3513c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ripecheck.tcl
Expand Up @@ -14,11 +14,11 @@
# you wish to ban.
# * Customizable ban messages with simple keyword support, see .help ripeconfig
# * Builtin help pages, see .help ripecheck or .help
# * !ripeinfo <host> to get verbose information from whois about the <host>
# * !ripeinfo <nick|host> to get verbose information from whois about the host
# * !ripeinfo and !ripecheck are available as public commands and through private
# /msg to the bot (if enabled)
# * Ban counter, number of times ripecheck have banned someone in the channel
# * !ripestatus show settings and bancount stats for the channel
# * !ripestatus [*|#channel] show settings and bancount stats for the channel
# * Whitelist mode. Only let hosts from a country specified by the TLD list
# enter the channel, everyone else get banned.
###
Expand Down Expand Up @@ -106,11 +106,13 @@
# Public channel commands:
# !ripecheck <nick|host>
# !ripeinfo <nick|host>
# !ripestatus <*|#channel>
# !ripegeo <nick|host>
# !ripestatus [*|#channel]
#
# Private msg commands:
# !ripecheck <host>
# !ripeinfo <host>
# !ripegeo <host>
###
# Tested:
# eggdrop v1.6.19 GNU/Linux with tcl 8.5 and tcllib 1.10
Expand Down Expand Up @@ -501,7 +503,7 @@ namespace eval ::ripecheck {

set googleUrl "http://maps.google.com/maps?q=[dict get $geoData Latitude],[dict get $geoData Longitude]&z=7"
set msgheader [format "%-*s | %-*s | %-*s | %-*s | %-*s | %-*s | %-*s" \
$len(Ip) "Ip" \
$len(Ip) "IP" \
$len(CountryName) "CountryName" \
$len(RegionName) "RegionName" \
$len(City) "City" \
Expand Down Expand Up @@ -594,7 +596,6 @@ namespace eval ::ripecheck {
if {[::ripecheck::isConfigEnabled msgcmds]} {
::ripecheck::pubParseIp $nick $host $handle "" $ip msgRipeCheck
}
return 0
}

proc pubRipeInfo { nick host handle channel arg } {
Expand All @@ -609,7 +610,6 @@ namespace eval ::ripecheck {
if {[::ripecheck::isConfigEnabled msgcmds]} {
::ripecheck::pubParseIp $nick $host $handle "" $ip msgRipeInfo
}
return 0
}

proc pubRipeGeo { nick host handle channel arg } {
Expand All @@ -623,7 +623,6 @@ namespace eval ::ripecheck {
if {[::ripecheck::isConfigEnabled msgcmds]} {
::ripecheck::pubParseIp $nick $host $handle "" $ip msgRipeGeo
}
return 0
}

proc pubRipeStatus { nick host handle channel arg } {
Expand Down

0 comments on commit 5c3513c

Please sign in to comment.