diff options
Diffstat (limited to 'ipc.c')
| -rw-r--r-- | ipc.c | 18 | 
1 files changed, 9 insertions, 9 deletions
| @@ -137,7 +137,7 @@ static void ipc_child_cmd_wallops( irc_t *irc, char **cmd )  		return;  	if( strchr( irc->umode, 'w' ) ) -		irc_write( irc, ":%s WALLOPS :%s", irc->myhost, cmd[1] ); +		irc_write( irc, ":%s WALLOPS :%s", irc->root->host, cmd[1] );  }  static void ipc_child_cmd_wall( irc_t *irc, char **cmd ) @@ -146,7 +146,7 @@ static void ipc_child_cmd_wall( irc_t *irc, char **cmd )  		return;  	if( strchr( irc->umode, 's' ) ) -		irc_write( irc, ":%s NOTICE %s :%s", irc->myhost, irc->nick, cmd[1] ); +		irc_write( irc, ":%s NOTICE %s :%s", irc->root->host, irc->user->nick, cmd[1] );  }  static void ipc_child_cmd_opermsg( irc_t *irc, char **cmd ) @@ -155,7 +155,7 @@ static void ipc_child_cmd_opermsg( irc_t *irc, char **cmd )  		return;  	if( strchr( irc->umode, 'o' ) ) -		irc_write( irc, ":%s NOTICE %s :*** OperMsg *** %s", irc->myhost, irc->nick, cmd[1] ); +		irc_write( irc, ":%s NOTICE %s :*** OperMsg *** %s", irc->root->host, irc->user->nick, cmd[1] );  }  static void ipc_child_cmd_rehash( irc_t *irc, char **cmd ) @@ -175,10 +175,10 @@ static void ipc_child_cmd_kill( irc_t *irc, char **cmd )  	if( !( irc->status & USTATUS_LOGGED_IN ) )  		return; -	if( nick_cmp( cmd[1], irc->nick ) != 0 ) +	if( nick_cmp( cmd[1], irc->user->nick ) != 0 )  		return;		/* It's not for us. */ -	irc_write( irc, ":%s!%s@%s KILL %s :%s", irc->mynick, irc->mynick, irc->myhost, irc->nick, cmd[2] ); +	irc_write( irc, ":%s!%s@%s KILL %s :%s", irc->root->nick, irc->root->nick, irc->root->host, irc->user->nick, cmd[2] );  	irc_abort( irc, 0, "Killed by operator: %s", cmd[2] );  } @@ -187,7 +187,7 @@ static void ipc_child_cmd_hello( irc_t *irc, char **cmd )  	if( !( irc->status & USTATUS_LOGGED_IN ) )  		ipc_to_master_str( "HELLO\r\n" );  	else -		ipc_to_master_str( "HELLO %s %s :%s\r\n", irc->host, irc->nick, irc->realname ); +		ipc_to_master_str( "HELLO %s %s :%s\r\n", irc->user->host, irc->user->nick, irc->user->fullname );  }  static const command_t ipc_child_commands[] = { @@ -513,7 +513,7 @@ static gboolean new_ipc_client( gpointer data, gint serversock, b_input_conditio  		return TRUE;  	} -	child->ipc_inpa = b_input_add( child->ipc_fd, GAIM_INPUT_READ, ipc_master_read, child ); +	child->ipc_inpa = b_input_add( child->ipc_fd, B_EV_IO_READ, ipc_master_read, child );  	child_list = g_slist_append( child_list, child ); @@ -551,7 +551,7 @@ int ipc_master_listen_socket()  		return 0;  	} -	b_input_add( serversock, GAIM_INPUT_READ, new_ipc_client, NULL ); +	b_input_add( serversock, B_EV_IO_READ, new_ipc_client, NULL );  	return 1;  } @@ -596,7 +596,7 @@ int ipc_master_load_state( char *statefile )  			fclose( fp );  			return 0;  		} -		child->ipc_inpa = b_input_add( child->ipc_fd, GAIM_INPUT_READ, ipc_master_read, child ); +		child->ipc_inpa = b_input_add( child->ipc_fd, B_EV_IO_READ, ipc_master_read, child );  		child_list = g_slist_append( child_list, child );  	} | 
