degesch: fix logging of outgoing status messages
"/msg @#test test" would log "MSG(): test"
This commit is contained in:
parent
5ca07656a1
commit
11aaf1b325
10
degesch.c
10
degesch.c
|
@ -2523,6 +2523,16 @@ formatter_parse_mirc (struct formatter *self, const char *s)
|
|||
static void
|
||||
formatter_parse_nick (struct formatter *self, char *s)
|
||||
{
|
||||
// For outgoing messages; maybe we should add a special #t for them
|
||||
// which would also make us not cut off the userhost part, ever
|
||||
if (irc_is_channel (self->s, irc_skip_statusmsg (self->s, s)))
|
||||
{
|
||||
char *tmp = irc_to_utf8 (self->ctx, s);
|
||||
FORMATTER_ADD_TEXT (self, tmp);
|
||||
free (tmp);
|
||||
return;
|
||||
}
|
||||
|
||||
char *nick = irc_cut_nickname (s);
|
||||
int color = siphash_wrapper (nick, strlen (nick)) % 7;
|
||||
|
||||
|
|
Loading…
Reference in New Issue