… | |
… | |
239 | } |
239 | } |
240 | else |
240 | else |
241 | ((void (*)(char *, int, client *))pkt->cb)((char *)data, datalen, this); |
241 | ((void (*)(char *, int, client *))pkt->cb)((char *)data, datalen, this); |
242 | } |
242 | } |
243 | else |
243 | else |
244 | send_packet_printf ("drawinfo %d ERROR: you cannot execute '%s' now.", NDI_RED | NDI_REPLY, pkt->name); |
244 | send_packet_printf ("msg %d log ERROR: you cannot execute '%s' now.", NDI_RED | NDI_REPLY, pkt->name); |
245 | } |
245 | } |
246 | |
246 | |
247 | bool |
247 | bool |
248 | client::handle_packet () |
248 | client::handle_packet () |
249 | { |
249 | { |
… | |
… | |
688 | cfperl_send_msg (this, color, type, msg); |
688 | cfperl_send_msg (this, color, type, msg); |
689 | else |
689 | else |
690 | send_packet_printf ("msg %d %s %s", color & NDI_CLIENT_MASK, type, msg); |
690 | send_packet_printf ("msg %d %s %s", color & NDI_CLIENT_MASK, type, msg); |
691 | } |
691 | } |
692 | |
692 | |
693 | void |
|
|
694 | client::send_drawinfo (const char *msg, int flags) |
|
|
695 | { |
|
|
696 | send_msg (flags, "log", msg); |
|
|
697 | } |
|
|
698 | |
|
|
699 | /*********************************************************************** |
693 | /*********************************************************************** |
700 | * |
694 | * |
701 | * packet functions/utilities |
695 | * packet functions/utilities |
702 | * |
696 | * |
703 | **********************************************************************/ |
697 | **********************************************************************/ |