View Full Version : site stats ...
site stats allup limit "=ADMIN =USER"
this works perfectly for sure, but could you add the != trigger ?
for exemple :
site stats allup limit "!=ADMIN"
so that the group ADMIN doesn't appear in the stats .....
thx for answer ...
Zer0Racer
03-02-2004, 04:10 PM
site stats allup limit "!=ADMIN =USER"
?????? hum !!! it was just an example ... i don't understand why you replied that !!! are you sure you understood my question ???
Mouton
03-03-2004, 09:14 AM
He did reply to your question.
The right syntax is "!=groupname *" or "!-username *"
If you don't put * or some way to match the users you want to show, !* is appended.
So "!=ADMIN" really means "!=ADMIN !*" which matches nobody.
The exact same way as if u put STOR = MN in your ioFTPD.ini permissions, only M and N users will be allowed, nobody else...
ho sorry thx for the answer :) :) :)
thats works in ioftpd, but i have a problem using this in my eggdrop, for example :
ftp::Quote $conn SITE stats ALLUP limit =ADMIN
this works perfectly, but it seems ftp.tcl doesn't like :
ftp::Quote $conn SITE stats ALLUP limit "=ADMIN =USER"
so have you any idea for me ? another way to user the limit argument without "..." when we want to use multiple parameters .... for example :
ftp::Quote $conn SITE stats ALLUP limit =ADMIN =USER
==> i think this form should correct my problem :) but its has not been implemented yet , so can you think you can help me ?
Mouton
03-03-2004, 11:49 AM
you need to use double-quotes " " around values if there's a space in there.
and ioB won't accept quotes there i'd guess.
I think i remember changing ftp.tcl to accept quotes...
try this (add the bold block that isn't there in yours):
proc ::ftp::Quote {s args} {
upvar ::ftp::ftp$s ftp
if {[string last "\{" $args] != -1} {
set args [string range $args [expr [string last "{" $args]+1] [expr [string first "}" $args]-1]]
}
if { ![info exists ftp(State)] } {
DisplayMsg $s "Not connected!" error
return 0
}
...
Use: ftp::Quote $conn SITE STATS ALLUP limit \"=ADMIN =USER\"
You have to use \" in a tcl string to output ".
grrr i don't know why i didn't think about that !!! thx for answer it works perfecty, but i needed to add spaces like this in order to make it work :
ftp::Quote $conn SITE stats ALLUP limit \" !=ADMIN !=SITEOP * \"]
thx again !!!!
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.