diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-29 20:18:54 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-29 20:18:54 +0200 |
commit | f7ca5877b69d452ef2e2ab4dc4d06743072deca0 (patch) | |
tree | 6ce785e43326ef0b638105eaf4ccc2b1760bfc43 /irc.c | |
parent | 2fe5eb939ff77697b578bf45ba23cd99daee9c5f (diff) |
Restore default_target setting, kill last_root_cmd variable and just use
the last_channel variable, like for any other user.
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -243,7 +243,6 @@ void irc_free( irc_t * irc ) g_free( irc->sendbuffer ); g_free( irc->readbuffer ); g_free( irc->password ); - g_free( irc->last_root_cmd ); g_free( irc ); @@ -728,15 +727,15 @@ int irc_check_login( irc_t *irc ) set_setstr( &ic->set, "auto_join", "true" ); irc_channel_auto_joins( irc, NULL ); - irc->last_root_cmd = g_strdup( ROOT_CHAN ); + irc->root->last_channel = irc->default_channel; - 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 ); + 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." ); /* This is for bug #209 (use PASS to identify to NickServ). */ if( irc->password != NULL ) |