degesch: show CTCPs to channels as such
This commit is contained in:
parent
5dda5661ae
commit
4c81112840
10
degesch.c
10
degesch.c
@ -5582,9 +5582,13 @@ irc_handle_ctcp_request (struct server *s,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: eventually "requested by #n (to ##channel)"
|
struct formatter f;
|
||||||
log_server_status (s, s->buffer,
|
formatter_init (&f, s->ctx, s);
|
||||||
"CTCP requested by #n: #S", msg->prefix, chunk->tag.str);
|
formatter_add (&f, "CTCP requested by #n", msg->prefix);
|
||||||
|
if (irc_is_channel (s, target))
|
||||||
|
formatter_add (&f, " (to #S)", target);
|
||||||
|
formatter_add (&f, ": #S", chunk->tag.str);
|
||||||
|
log_formatter (s->ctx, s->buffer, BUFFER_LINE_STATUS, &f);
|
||||||
|
|
||||||
char *nickname = irc_cut_nickname (msg->prefix);
|
char *nickname = irc_cut_nickname (msg->prefix);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user