… | |
… | |
486 | pl->contr->ns->send_packet (sl); |
486 | pl->contr->ns->send_packet (sl); |
487 | |
487 | |
488 | free (map_mark); |
488 | free (map_mark); |
489 | } |
489 | } |
490 | |
490 | |
491 | /** |
|
|
492 | * Send a kill log record to sockets |
|
|
493 | */ |
|
|
494 | void |
|
|
495 | Log_Kill (const char *Who, const char *What, int WhatType, const char *With, int WithType) |
|
|
496 | { |
|
|
497 | size_t len; |
|
|
498 | char buf[MAX_BUF]; |
|
|
499 | |
|
|
500 | if (With != NULL) |
|
|
501 | snprintf (buf, MAX_BUF, "%s\t%s\t%d\t%s\t%d\n", Who, What, WhatType, With, WithType); |
|
|
502 | else |
|
|
503 | snprintf (buf, MAX_BUF, "%s\t%s\t%d\n", Who, What, WhatType); |
|
|
504 | |
|
|
505 | len = strlen (buf); |
|
|
506 | } |
|
|
507 | |
|
|