Page 1 of 1

Logging Module (ethical)

Posted: Fri Sep 16, 2005 7:34 am
by KeMiJohN
A couple of days ago, my other topic got locked for being unethical.. I understand why.. and I'm not going to discuss it..

But i would like help to make a logging module..

just very simple write joins and parts to a logfile..

I've been trying to modify other scripts for this.. but I just fuck up my IRCd :P

Since you can get a module on this site(JoinPartSno by codemastr) for getting joins and parts as server notices.
I believe it would be unethical to log it either..

Can anyone help me? :)

Posted: Fri Sep 16, 2005 8:06 am
by Stealth
Perhaps you or someone (maybe a friendly bored person with module knowledge) can modify joinpartsno to put entries in a logfile...

Posted: Fri Sep 16, 2005 8:56 am
by KeMiJohN
well.. thats the problem..

i have no idea how to make it write to a logfile :/

Posted: Fri Sep 16, 2005 9:27 am
by KeMiJohN
uuuh.. I think I just found something..

ill be back if I need help :P

Posted: Fri Sep 16, 2005 10:20 am
by KeMiJohN
yay.. it works..

right now I just use the LOG_CLIENT, which puts it in my connects log..
but what if i want to add a new logtype in the s_conf.c file?

like { LOG_JOINPART, "joinpart" }

how do i compile this .c file ? I cant use the make custommodule for this right ? :)

Posted: Fri Sep 16, 2005 10:51 am
by w00t
What exactly have you found? :p And changing/adding logtypes isn't possible without editing the source, which isn't supported.

Posted: Fri Sep 16, 2005 11:20 am
by KeMiJohN
hmf.. okay.. it just looks so simple to add an extra line :P
doesnt matter.. its okay to have it in my connects log :)

I just found some logging stuff from the chgident.c made by XeRXeS

and then I changed it a little at put it in the joinpartsno.c

very simple - nothing special
I'm proud of myself though :P first module that actually worked for me :P

I'd be happy to share if anyone wants it.

Posted: Fri Sep 16, 2005 11:58 am
by w00t
Perhaps submit it to the modules section of unrealircd.com

Posted: Fri Sep 16, 2005 12:55 pm
by KeMiJohN
I've added it now :)