Rehash removes K:Lines?

These are old archives. They are kept for historic purposes only.
Post Reply
Ghost4126
Posts: 22
Joined: Sat Apr 24, 2004 9:08 pm

Rehash removes K:Lines?

Post by Ghost4126 »

While using unreal, i noticed that after a rehash, all klines are lifted. I was wondering if you want klines to be perminant, do you have to add them to urnealircd.conf?
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

I think he's refering to the annoying fact that you put a 36-hour K:Line and only 2 hours down the road it gets removed because some oper rehashed.

Yeah, having TKL bans stick around through a rehash... hm...
Ghost4126
Posts: 22
Joined: Sat Apr 24, 2004 9:08 pm

Post by Ghost4126 »

Yes, i've read the fucking manual many times (man i hate that abbreviation). that is exactly what i am talking about aquanight. Lets say i dont want to give an oper shell access to the server to add a ban user{} block? What if the server crashes, and all klines are lost? I was wondering why unreal doesnt write a ban user {} block to the unrealircd.conf file when an oper klines someone, and re write the config file, and remove it when the kline expires.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Because #1 that's not possible, #2 it's incredibly ugly code, #3 it's bad style, #4 not a single IRCd does it like that.

Since the beginning of klines, a /rehash has always removed dynamic klines, Unreal is no different from the rest.
-- codemastr
Ghost4126
Posts: 22
Joined: Sat Apr 24, 2004 9:08 pm

Post by Ghost4126 »

acctually, yes there are ircd's that add klines to a server kline file when they are added.
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

hahaha

To Ghost4126:
acctually, yes there are ircd's that add klines to a server kline file when they are added.
Buddy buddy buddy, you probably shouldn't aruge with the people who give your valid information. You might be right as to there being one or so many ircds that do write klines within a file. However codemastr IS right. The most common ircds do not write klines to a file, but get erased during rehash. It not wise to aruge with one of Unreal's HEAD coders. (just a suggestion, you can if you like, I leave it to your digression.)
Yes, i've read the fucking manual many times (man i hate that abbreviation).
Again buddy, we are here to help you... And part of that help isn't always handing you answers, but handing you the resources to find your own answers. Yeah I know you wanted klines to write. But since you asked if you had to add each on within the configuration I figured I'd send you the docmentation instead. :)
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Ghost4126
Posts: 22
Joined: Sat Apr 24, 2004 9:08 pm

Post by Ghost4126 »

I dunno...i think bahamut is one of them, what do you call them, most common ircd's. As for this thread, all i wanted to know was if there was a way to have unreal add klines to the config when an oper klined someone. My question has been answered, no, it isnt possible. If i really need to, i can write some sort of module to do this, no, it isnt a big deal, as if i trust someone enough to oper them, then they shouldnt have any problem with being given access to a klines.conf file using ssh every time they kline.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Adding to klines.conf is not the same as what you suggested. You wanted them added to the config file.
-- codemastr
Ghost4126
Posts: 22
Joined: Sat Apr 24, 2004 9:08 pm

Post by Ghost4126 »

bahamut does add them to the config file. i said that i would give them access to an included klines.conf file for unreal if i were to want them to be able to add klines that way. I say that because i wouldnt want them having access to the actual unrealircd.conf for obvious reasons.
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Well if you want a module solution, there is a tkl_export and tkl_import module that writes/reads from a file.
-- codemastr
Post Reply