florian-sander / stats.mod

stats.mod is a module which equips your eggdrop with the ability to create various statistics about your channels.
http://www.kreativrauschen.com/stats.mod/
9 stars 5 forks source link

Feature request: Adding purgestats as a TCL command #7

Open CP1832 opened 8 years ago

CP1832 commented 8 years ago

Hi Florian:

Would it be possible to add purgestats as a TCL command (as well as a DCC command) for future releases so as to be able to purge stats in a regular way using a TCL script?

Thanks in advance.

florian-sander commented 8 years ago

That shouldn't be too difficult.

I am wondering if it could even be done without modifying the c code since there is already a dcc binding. Since there is already a dcc binding, it might be possible to trigger through TCL. It's been too long since I used bindings to know that for sure, though. :)

If not, here are some pointers which might help to add purge stats to the c code as a new TCL command: All TCL commands are in the file tclstats.c. You can copy the business logic from the dcc command which is located in dcccmds.c.

Hope that helps!