Changeset debe871
- Timestamp:
- 2010-07-09T21:06:38Z (14 years ago)
- Branches:
- master
- Children:
- c5bff81
- Parents:
- 9595d2b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ipc.c
r9595d2b rdebe871 50 50 } 51 51 52 /* CLIENT == On initial connects, HELLO is after /RESTARTs. */ 52 53 if( g_strcasecmp( cmd[0], "CLIENT" ) == 0 ) 53 54 ipc_to_children_str( "OPERMSG :Client connecting (PID=%d): %s@%s (%s)\r\n", 54 55 (int) ( child ? child->pid : -1 ), cmd[2], cmd[1], cmd[3] ); 56 } 57 58 static void ipc_master_cmd_nick( irc_t *data, char **cmd ) 59 { 60 struct bitlbee_child *child = (void*) data; 61 62 if( child && cmd[1] ) 63 { 64 g_free( child->nick ); 65 child->nick = g_strdup( cmd[1] ); 66 } 55 67 } 56 68 … … 208 220 { "client", 3, ipc_master_cmd_client, 0 }, 209 221 { "hello", 0, ipc_master_cmd_client, 0 }, 222 { "nick", 1, ipc_master_cmd_nick, 0 }, 210 223 { "die", 0, ipc_master_cmd_die, 0 }, 211 224 { "deaf", 0, ipc_master_cmd_deaf, 0 }, -
irc_user.c
r9595d2b rdebe871 25 25 26 26 #include "bitlbee.h" 27 #include "ipc.h" 27 28 28 29 irc_user_t *irc_user_new( irc_t *irc, const char *nick ) … … 158 159 irc->users = g_slist_insert_sorted( irc->users, iu, irc_user_cmp ); 159 160 161 if( iu == irc->user ) 162 ipc_to_master_str( "NICK :%s\r\n", new ); 163 160 164 return 1; 161 165 }
Note: See TracChangeset
for help on using the changeset viewer.