Kill Protection Module for Netadmins (Usermode +K)

These are old archives. They are kept for historic purposes only.
Darwin
Posts: 15
Joined: Thu Feb 17, 2005 8:28 am
Contact:

Kill Protection Module for Netadmins (Usermode +K)

Post by Darwin »

Hello there,

I've coded and customized my first own UnrealIRCd module. The idea has been influenced by the +q mode which prevents IRCops from being kicked out of a channel. It adds a new Usermode (+K) which prevents NetAdmins from being killed by other IRC operators. I know that similiar modules already exist but I didn't find one which lets the Netadmin decide if he wants the be protected or not with setting a Usermode. I've taken some example code from other modules in order to get more familiar with coding unreal modules.

The module can be found there:

http://www.mburki.com/src/modules/m_killprotect.c

Please let me know whether you find it useful or not. Tell me your thoughts. Suggestions are always welcome.

Thanks

Darwin
Itsme-HcK
Posts: 20
Joined: Tue Jan 04, 2005 5:28 pm
Location: Nijmegen
Contact:

Post by Itsme-HcK »

Shouldn't it be nice to give the headers too?
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

A windows version of m_killprotect will soon be here.
black_skies4
Posts: 29
Joined: Mon Jun 20, 2005 2:51 pm

Post by black_skies4 »

Congradulations Darwin :).

One thing though, if some oper kills your NetAdmin, you will know that it's a bad oper and will deoper them. If they can't kill, one less way you can tell how good your opers are...
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

black_skies4, if you had actually used the module, you would notice that there is a notice sent to the netadmin with +K, and a globops notice sent to all the opers on the network saying there was an attempted kill on a netadmin.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Can I point to m_netadmins by angrywolf?
Why the hell can't my signature be empty?
"Your message contains too few characters."
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

IIRC, m_netadmins did not give netadmins a choice about not being killed. This module makes a new umode (+K), that allows netadmins to choose to be protected or not.
sdamon
Posts: 46
Joined: Tue Jun 07, 2005 7:28 am

Post by sdamon »

does this effect services ghosting?
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

No. NetAdmins and Services can always kill people with +K
black_skies4
Posts: 29
Joined: Mon Jun 20, 2005 2:51 pm

Post by black_skies4 »

Hmm, well if the opers knew about the module, they wouldn't even attempt a kill. But hey, i see your point, thanks man.
Darwin
Posts: 15
Joined: Thu Feb 17, 2005 8:28 am
Contact:

Post by Darwin »

Sorry guys I was away for quite a while. Busy in real life ;-) But now I'm back.

@Stealth: thanks for supporting my module during my absence :)
-D-
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

error code

Post by KinG »

After loading this module in the Unreal3.2 map, changing my unrealird.conf en rehashing i get the error code:

unrealircd.conf:36: loadmodule src/modules/m_killprotect.c: failed to load: tmp/C6474F3C.m_killprotect.c: invalid ELF header


Can someone help me with this error?

Thank you verry much...

KinG
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Why are you trying to load a .c? You need to compile a module before you can use it.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

ooops

Post by KinG »

Yeps...

I'm sorry. I've indeed tried to load it with the4 c file....
I've got a friend who had helped me with making the module etc.
I've now load it and everything works.

thanks again, learning every day....

KinG

Thanks again for de maker of this module.
steven_elvisda
Posts: 15
Joined: Sat Apr 23, 2005 12:09 pm

Post by steven_elvisda »

Thanks Darwin for sharing nice module.
I hope u can share other nice module like this more and more.
I wish you good health, and good with everything that you wish.


:)
Locked