| View previous topic :: View next topic |
| Author |
Message |
ap Halfop
Joined: 09 Jun 2006 Posts: 44
|
Posted: Sat Dec 23, 2006 3:09 pm Post subject: ban counts |
|
|
Hi, i'm trying to count and display the sticky bans only from the global banlist but no luck. i'm trying this. Can someone help me pls. thx
code snip..
| Code: | set count 0
foreach b [banlist]{
if {[string match -nocase "*stick*" $b]} {
incr count
}
}
putlog "Number of sticky bans: $count" |
###
Also I've tried the following as well but it doesn't work
| Code: |
foreach b [banlist]{
if {[isbansticky $b]} {
putlog "Sticky bans: $b"
}
} |
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Dec 23, 2006 10:00 pm Post subject: |
|
|
| Code: | set count 0
foreach b [banlist]{
if {[isbansticky [lindex $b 0]]} {
incr count
}
}
putlog "Number of sticky bans: $count" |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
ap Halfop
Joined: 09 Jun 2006 Posts: 44
|
Posted: Sat Dec 23, 2006 10:16 pm Post subject: |
|
|
| thank you, Sir_Fz |
|
| Back to top |
|
 |
|