Logging Module (ethical)

These are old archives. They are kept for historic purposes only.
Post Reply
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Logging Module (ethical)

Post 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? :)
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Perhaps you or someone (maybe a friendly bored person with module knowledge) can modify joinpartsno to put entries in a logfile...
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Post by KeMiJohN »

well.. thats the problem..

i have no idea how to make it write to a logfile :/
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Post by KeMiJohN »

uuuh.. I think I just found something..

ill be back if I need help :P
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Post 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 ? :)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

What exactly have you found? :p And changing/adding logtypes isn't possible without editing the source, which isn't supported.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Post 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.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Perhaps submit it to the modules section of unrealircd.com
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
KeMiJohN
Posts: 14
Joined: Tue Sep 13, 2005 6:15 pm

Post by KeMiJohN »

I've added it now :)
Post Reply