Anope IRC Services
Anope Development => Modules => Topic started by: Andrei Rosseti on April 22, 2009, 03:09:01 PM
-
In january of this year I started developing a short module for the Anope IRC Services. It provides a simple users record counter for chanserv service network.
You can download the source by the URL http://www.unsignal.com/dev/brasirc/cs_recordcount.c
-
Nice module. :-)
Can you upload it to the modules site? ( http://modules.anope.org/ )
You have a memory leak in do_record_info():
myStrGetToken returns a pointer to allocated memory. You have to free() chan und param before the return.
[edit]
this looks a bit better, but its not ok. What happens if do_record_info is called with no params? trying to free() a NULL pointer is not good.
try: "if (chan) free(chan);" :-)
[/edit]
-
Nice! i think that now it's look a bit better! :-P
Thanks Jens Voss!
-
What's wrong with /lusers? Heh.
-
Well, the command /lusers don't retain the information for a long time stored in your hard disk.
IRCd has a volatile information, try to put your ircd process down to look better.
I write it only for hobby.
Tks.
-
Spot the mistake...
[17:13] <&Global> OperServ: Jue: modload cs_recordcount
[17:13] <&Global> Trying to load module [cs_recordcount]
[17:13] <&Global> cs_recordcount: success: Unable to open the database.
[17:13] <&Global> cs_recordcount loaded
[17:13] <&Global> Module loading status: 0 (Module, Okay - No Error)
-
Now it's ok, check it!
:)
-
This is all good and everything, but how do I see the information the database is holding? Is there some sort of command?...Maybe something to make this module big like NeoStats StatServ...
Make it so it announces the max number of people who joined a specific channel and announce it in the services channel?
-
Julian, you can view the information stored in your databases putting this command: [ /chanserv info channel all ]
Look, when your network is smaller, no have problem to announce in a specific channel the records, but if you have a biggest network, it generate much and fast information, and you can't read like.
Thanks for your comments!
-
Well my network is a small network...
Plus implimenting something like NeoStats onto an Anope module makes life easier... Mean's people can get rid of NeoStats.
-
Error on Inspircd 1.2 and Anope 1.8.4
{2010-08-30}-{00:03:45} <matrix.german-irc.net> GLOBOPS: From OperServ: WARNING! Backup of cs_recordcount.db failed.
-
used this module and I'm also with this same problem What can it be done.
From OperServ: WARNING! Backup of cs_recordcount.db failed.