diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-19 17:34:41 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-19 17:34:41 +0100 |
commit | 2face6292c693afb45e5e04f87ba080931eb16c3 (patch) | |
tree | 60676ca503cd6bc610535fefe1490ddf48c337af /irc.c | |
parent | 4c266f2d79212e4e0ff4b9b33088685a2ec452e4 (diff) | |
parent | 4c266f2d79212e4e0ff4b9b33088685a2ec452e4 (diff) |
A bit too much for one commit, but well: Client processes didn't clean up
some master structs (bitlbee_child list) yet, and added the IPC CLIENT
command to inform the master process about host- and nickname. Can be useful
later.
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -26,6 +26,7 @@ #define BITLBEE_CORE #include "bitlbee.h" #include "crypting.h" +#include "ipc.h" static gboolean irc_userping( gpointer _irc ); @@ -688,11 +689,13 @@ void irc_login( irc_t *irc ) u->host = g_strdup( irc->host ); u->realname = g_strdup( irc->realname ); u->online = 1; -// u->send_handler = msg_echo; irc_spawn( irc, u ); irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQ's are answered there." ); + if( global.conf->runmode == RUNMODE_FORKDAEMON ) + ipc_to_master_str( "CLIENT %s %s :%s\r\n", irc->host, irc->nick, irc->realname ); + irc->status = USTATUS_LOGGED_IN; } |