This commit is contained in:
Andy2 2010-11-01 06:57:54 -07:00
parent 804070efc7
commit 3d70da5a8d

View file

@ -528,7 +528,8 @@ server_initClientConnection( ServerCtxt* server, XWStreamCtxt* stream )
static void static void
sendChatTo( ServerCtxt* server, XP_U16 devIndex, const XP_UCHAR const* msg ) sendChatTo( ServerCtxt* server, XP_U16 devIndex, const XP_UCHAR const* msg )
{ {
XWStreamCtxt* stream = messageStreamWithHeader( server, devIndex, XWPROTO_CHAT ); XWStreamCtxt* stream = messageStreamWithHeader( server, devIndex,
XWPROTO_CHAT );
stringToStream( stream, msg ); stringToStream( stream, msg );
stream_destroy( stream ); stream_destroy( stream );
} }
@ -545,7 +546,8 @@ sendChatToClientsExcept( ServerCtxt* server, XP_U16 skip,
} }
} }
void server_sendChat( ServerCtxt* server, const XP_UCHAR const* msg ) void
server_sendChat( ServerCtxt* server, const XP_UCHAR const* msg )
{ {
if ( server->vol.gi->serverRole == SERVER_ISCLIENT ) { if ( server->vol.gi->serverRole == SERVER_ISCLIENT ) {
sendChatTo( server, SERVER_DEVICE, msg ); sendChatTo( server, SERVER_DEVICE, msg );