Hi, another quite unusual hack but maybe usefull for some of you: Adding these two lines to conn.c after line 1313:
if(Channel_FirstChannelOf(c) == NULL && Conn_GetIdle(Client_Conn(c)) > 60) Conn_Close( i, NULL, "Not on a channel timeout", true );
will auto-close connections to people who hang around on your server but don't chat on any of the channels. (I just can't stand them) It gives them 60 seconds to join a channel or switch between them.
Yours, Jens.
Hi Jens!
another quite unusual hack but maybe usefull for some of you: Adding these two lines to conn.c after line 1313:
if(Channel_FirstChannelOf(c) == NULL && Conn_GetIdle(Client_Conn(c)) > 60) Conn_Close( i, NULL, "Not on a channel timeout", true );
will auto-close connections to people who hang around on your server but don't chat on any of the channels. (I just can't stand them) It gives them 60 seconds to join a channel or switch between them.
Interesting Idea, thanks for your contribution!
But I'm not sure if this should go into the standard server ... We could add an configuration option, but too much configuration options aren't a "good thing" either ...
Regards Alex
Alexander Barton alex@barton.de wrote:
Hi Jens! But I'm not sure if this should go into the standard server ...
As I said it's quite an unusual thing and definitly not the standard behavior of an IRC server. But who wants a _standard_ server anyway? ;-) I told you about it because I thought it _might_ be usefull for some readers of this mailinglist. By the way it's still not working as I'd like it to work. It does what I said it does but there are still connections that I can't get rid off. I can't figure out what they are. They don't appear in the names list only in the return value of Count_Connections().
Yours, Jens
Hi Jens!
By the way it's still not working as I'd like it to work. It does what I said it does but there are still connections that I can't get rid off. I can't figure out what they are. They don't appear in the names list only in the return value of Count_Connections().
Count_Connections() counts all links that have a socket connected, including those that havn't sent a single valid command (NICK, USER) to the daemon and therefore arn't (jet) registered as client, server or whatever.
Probably you are seeing such "unregistered" connections?
Ah, and you should be able to "see" such connections in the output of the LUSERS command as "unknown connection(s)".
Regards Alex