mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-19 22:26:57 +01:00
cleanup
This commit is contained in:
parent
804070efc7
commit
3d70da5a8d
1 changed files with 4 additions and 2 deletions
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue