This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

.binds * get the HITS [fixed]

Old posts that have not been replied to for several years.
Locked
User avatar
Kurupt
Voice
Posts: 26
Joined: Sun Aug 22, 2004 7:57 pm
Location: Hermanstat

.binds * get the HITS [fixed]

Post by Kurupt »

Code: Select all

[23:58:19] <bot> Command bindings:
[23:58:19] <bot>   TYPE FLGS     COMMAND              HITS BINDING (TCL)
[23:58:19] <bot>   nick -|-      *                    4510 drone:nick
[23:58:19] <bot>   notc -|-      *LOGIN*username*password*  424 NoticeBan
[23:58:19] <bot>   notc -|-      *login*syntax*        273 NoticeBan
[23:58:19] <bot>   pub  -|-      .ub                    28 pub:unban
[23:58:19] <bot>   pub  -|-      .scan                  14 rna:scan
[23:58:19] <bot>   raw  -|-      221                  1489 mc:us:raw
[23:58:19] <bot>   raw  -|-      318                  1687 mc:us:raw
on dcc .binds * you get something like that how do i get the hits number ? somebody have a ideea?
Last edited by Kurupt on Sat Apr 16, 2005 5:16 pm, edited 1 time in total.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

have you read the TCL-Commands.doc under "binds"? If you have ever heared about lindex you should get the enlightment.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
User avatar
Kurupt
Voice
Posts: 26
Joined: Sun Aug 22, 2004 7:57 pm
Location: Hermanstat

doh

Post by Kurupt »

oh to get it if i have that line is no problem but how do i get this lines in tcl dosen't exist a command for .binds *
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Re: doh

Post by De Kus »

Kurupt wrote:oh to get it if i have that line is no problem but how do i get this lines in tcl dosen't exist a command for .binds *
open your eyes and learn how to read/search
TCL-Commands.doc wrote: binds [type/mask]
Returns: a list of Tcl binds, each item in the list is a sublist of
five elements:
{<type> <flags> <name> <hits> <proc>}
Module: core
so you can go through the whole list one by one with foreach or you use lindex to get the wanted element, if you know the index already (like you would if your given mask gives always the same list).
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked