Page 1 of 1

Rehash removes K:Lines?

Posted: Fri May 21, 2004 7:09 pm
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?

Posted: Fri May 21, 2004 8:38 pm
by jewles

Posted: Fri May 21, 2004 9:41 pm
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...

Posted: Sat May 22, 2004 7:06 am
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.

Posted: Sat May 22, 2004 5:20 pm
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.

Posted: Sun May 23, 2004 7:11 am
by Ghost4126
acctually, yes there are ircd's that add klines to a server kline file when they are added.

Posted: Sun May 23, 2004 8:17 am
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. :)

Posted: Sun May 23, 2004 8:43 am
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.

Posted: Sun May 23, 2004 7:51 pm
by codemastr
Adding to klines.conf is not the same as what you suggested. You wanted them added to the config file.

Posted: Sun May 23, 2004 8:06 pm
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.

Posted: Sun May 23, 2004 8:10 pm
by codemastr
Well if you want a module solution, there is a tkl_export and tkl_import module that writes/reads from a file.