… | |
… | |
486 | |
486 | |
487 | if (!(color & NDI_VERBATIM) |
487 | if (!(color & NDI_VERBATIM) |
488 | && (msg_is_special (msg) |
488 | && (msg_is_special (msg) |
489 | || (type [0] == 'c' && type [1] == '/') || len > (MAXSOCKBUF - 128))) |
489 | || (type [0] == 'c' && type [1] == '/') || len > (MAXSOCKBUF - 128))) |
490 | cfperl_send_msg (this, color, type, msg); |
490 | cfperl_send_msg (this, color, type, msg); |
491 | else if (can_msg) |
491 | else |
492 | send_packet_printf ("msg %d %s %s", color & NDI_CLIENT_MASK, type, msg); |
492 | send_packet_printf ("msg %d %s %s", color & NDI_CLIENT_MASK, type, msg); |
493 | else if (color < 0) |
|
|
494 | return; // client cannot handle this |
|
|
495 | else |
|
|
496 | send_packet_printf ("drawinfo %d %s", color & NDI_COLOR_MASK, msg); |
|
|
497 | } |
493 | } |
498 | |
494 | |
499 | void |
495 | void |
500 | client::send_drawinfo (const char *msg, int flags) |
496 | client::send_drawinfo (const char *msg, int flags) |
501 | { |
497 | { |