sarf wrote:Changelog :
Code: Select all
-- 0.251055987k --
* Added new replacement variables to the user commands
%[mode] returns the mode (if known - if not, nothing is returned)
mode will only contain anything if the user uses a DC++ description tag
or has been contacted - it should contain something like "", "P", "A"
or "5" but since that is (mostly) based what is after the M: in the tag,
don't count on it
all hub variables are empty if the hub string is not present
%[hubs] returns the hub string (1/0/2 or whatever is after the H:)
%[normalhubs] returns the number of normal hubs (based on the hub string)
%[registeredhubs] returns the number of registered hubs (based on the hub string)
using %[reghubs] also works
%[ophubs] returns the number of OP hubs (based on the hub string)
%[totalhubs] returns the total number of hubs (based on the hub string)
the search window has been updated with
%[filesize] which returns the size of the file (in bytes)
%[filesizeformat] which returns the size of the file (in an appropriate unit)
these should be used as %[size] and %[sizeformat] may be removed in a future version
* Added "fake" quitting as a means to remove clients that are kicked
* Probably fixed the 0 byte bug, yet again a variable was not initialized
* Re-enabled edonkey/byte shared cheat-checking
* It is going to take a while to migrate to DC++ 0.261, but I trust that you are patient
Oh yes, thank you very much for these additions! I love them already!
Here comes my newest not so common request:
I would like one of those 'cause I'm using this at the moment:
Code: Select all
/raw $MyINFO $ALL R200 <++ V:0.251,M:P,H:0/2/1,S:2>$ $R200$$28447126344$|
And that one shows the size a bit weird. I have an share of 26.49 GB but Windows calculates it to 26.4 GB (28 452 657 044 bytes) or (28 453 047 296 bytes). And if I calculate 26.49 with an calculator I get: 26.49 * 1024 * 1024 * 1024 = 28 443 420 917,76.
And if my share would change I would have to debug my info by logging on once to see my share size in dc.
If that command would become available I would put this in an user command:
Code: Select all
/raw $MyINFO $ALL R200 <++ V:0.251,M:P,H:0/2/1,S:2>$ $R200$$%[myshare]$|