jjyg / rbircd

ruby irc daemon
5 stars 3 forks source link

K-Line #3

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

Is it possible that you can add a K-Line command?

Cheers, Jack

ghost commented 9 years ago

Is it possible @jjyg?

What is the best way for us to implement it?

jjyg commented 9 years ago

Everything is possible, modulo a small patch :)

For KLines, i'd add a check against a blacklist in Port#can_read against fd.peer_addr after https://github.com/jjyg/rbircd/blob/master/ircd.rb#L262 , but you'd also need to add a way to persist the list across process restarts. I guess a new configuration line like 'K:/path/to/file' would be required, and the matching KLINE irc command (for opers only).

ghost commented 9 years ago

Can you implement it maybe? :+1:

jjyg commented 9 years ago

Nah, my ircd is not adapted against 'bad' users. If you really want to deploy it on an 'hostile' network, there are many checks and limitation that would need to be implemented on top of that.