degesch: print server name in debug output
This commit is contained in:
parent
8282b7bd45
commit
394b549926
10
degesch.c
10
degesch.c
|
@ -3054,9 +3054,12 @@ irc_send (struct server *s, const char *format, ...)
|
||||||
{
|
{
|
||||||
input_hide (&s->ctx->input);
|
input_hide (&s->ctx->input);
|
||||||
|
|
||||||
|
char *server_name =
|
||||||
|
iconv_xstrdup (s->ctx->term_from_utf8, s->name, -1, NULL);
|
||||||
char *term = irc_to_term (s->ctx, str.str);
|
char *term = irc_to_term (s->ctx, str.str);
|
||||||
fprintf (stderr, "[IRC] <== \"%s\"\n", term);
|
fprintf (stderr, "[%s] <== \"%s\"\n", server_name, term);
|
||||||
free (term);
|
free (term);
|
||||||
|
free (server_name);
|
||||||
|
|
||||||
input_show (&s->ctx->input);
|
input_show (&s->ctx->input);
|
||||||
}
|
}
|
||||||
|
@ -5152,9 +5155,12 @@ irc_process_message (const struct irc_message *msg,
|
||||||
{
|
{
|
||||||
input_hide (&s->ctx->input);
|
input_hide (&s->ctx->input);
|
||||||
|
|
||||||
|
char *server_name =
|
||||||
|
iconv_xstrdup (s->ctx->term_from_utf8, s->name, -1, NULL);
|
||||||
char *term = irc_to_term (s->ctx, raw);
|
char *term = irc_to_term (s->ctx, raw);
|
||||||
fprintf (stderr, "[IRC] ==> \"%s\"\n", term);
|
fprintf (stderr, "[%s] ==> \"%s\"\n", server_name, term);
|
||||||
free (term);
|
free (term);
|
||||||
|
free (server_name);
|
||||||
|
|
||||||
input_show (&s->ctx->input);
|
input_show (&s->ctx->input);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue