Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Extended substitute template to allow tld in both lower and upper case

  • Loading branch information...
commit 96ff0a6bf00967fce807029849e086f89f10c2da 1 parent 71367d8
Stefan Wold authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 ripecheck.tcl
6 ripecheck.tcl
@@ -282,6 +282,7 @@ namespace eval ::ripecheck {
282 282 set template [list %nick% $nick \
283 283 %domain% $htopdom \
284 284 %tld% $htopdom \
  285 + %TLD% [string toupper $htopdom] \
285 286 %country% $country]
286 287 set bantime [::ripecheck::getBanTime $channel]
287 288
@@ -367,7 +368,9 @@ namespace eval ::ripecheck {
367 368 set country [::ripecheck::getCountry $ripe]
368 369 set template [list %nick% $nick \
369 370 %ripe% $ripe \
  371 + %RIPE% [string toupper $ripe] \
370 372 %tld% $ripe \
  373 + %TLD% [string toupper $ripe] \
371 374 %country% $country]
372 375 if {[info exists ::ripecheck::config(banreason!$ripe)]} {
373 376 set banreason [::ripecheck::templateReplace $::ripecheck::config(banreason!$ripe) $template]
@@ -1700,7 +1703,8 @@ namespace eval ::stderreu {
1700 1703 putidx $idx " Regexp to ignore hosts: .ripeconfig exclhost add (?i)^.*.users.undernet.org\$"
1701 1704 putidx $idx " This regexp would match hosts not resolvable on UnderNET, when using (?i) the match is done with no case."
1702 1705 putidx $idx " \002Substitutional keywords, current keywords are\002:"
1703   - putidx $idx " %tld% = Top level domain, ie .us, .se, .no"
  1706 + putidx $idx " %tld% = Top level domain (lower cased), ie .us, .se, .no"
  1707 + putidx $idx " %TLD% = Top level domain (upper cased), ie .US, .SE, .NO"
1704 1708 putidx $idx " %country% = Country name"
1705 1709 putidx $idx " %nick% = Nickname of the user being banned"
1706 1710 putidx $idx " \002*NOTE*\002:"

0 comments on commit 96ff0a6

Please sign in to comment.
Something went wrong with that request. Please try again.