From b9256662a7ef5660b35ba51bdc8d798befb871f0 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 29 Jul 2010 21:30:47 +0200 Subject: Show a friendly warning message when running in inetd mode on the command line (if stdin is a TTY). This hopefully answers a FAQ. Also moved stuff around in README a little bit, daemon mode should be described before obsolete inetd stuff. --- irc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 26ec8012..cbbd21a3 100644 --- a/irc.c +++ b/irc.c @@ -146,6 +146,12 @@ irc_t *irc_new( int fd ) set_eval_charset( set_find( &b->set, "charset" ), set_getstr( &b->set, "charset" ) ); irc_write( irc, ":%s NOTICE AUTH :%s", irc->root->host, "BitlBee-IRCd initialized, please go on" ); + if( isatty( irc->fd ) ) + irc_write( irc, ":%s NOTICE AUTH :%s", irc->root->host, + "If you read this, you most likely accidentally " + "started BitlBee in inetd mode on the command line. " + "You probably want to run it in (Fork)Daemon mode. " + "See doc/README for more information." ); g_free( myhost ); g_free( host ); -- cgit v1.2.3