From e21c0f8b276cc3ca177bcf6217eba9c634d410f7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 12 Apr 2010 01:31:43 +0200 Subject: Always show root's greeting inside the control channel. --- irc.c | 8 ++++++++ irc_send.c | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/irc.c b/irc.c index b6a1b9f9..8f4024dd 100644 --- a/irc.c +++ b/irc.c @@ -639,6 +639,14 @@ int irc_check_login( irc_t *irc ) irc->last_root_cmd = g_strdup( ROOT_CHAN ); + irc_send_msg( irc->root, "PRIVMSG", ROOT_CHAN, + "Welcome to the BitlBee gateway!\n\n" + "If you've never used BitlBee before, please do read the help " + "information using the \x02help\x02 command. Lots of FAQs are " + "answered there.\n" + "If you already have an account on this server, just use the " + "\x02identify\x02 command to identify yourself.", NULL ); + return 1; } } diff --git a/irc_send.c b/irc_send.c index 3eecf5f4..ce4c86fe 100644 --- a/irc_send.c +++ b/irc_send.c @@ -47,13 +47,6 @@ void irc_send_login( irc_t *irc ) "CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server", CTYPES, CMODES, MAX_NICK_LENGTH - 1 ); irc_send_motd( irc ); - - irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\n" - "If you've never used BitlBee before, please do read the help " - "information using the \x02help\x02 command. Lots of FAQs are " - "answered there.\n" - "If you already have an account on this server, just use the " - "\x02identify\x02 command to identify yourself." ); } void irc_send_motd( irc_t *irc ) -- cgit v1.2.3