degesch: fix logging of outgoing status messages

"/msg @#test test" would log "MSG(): test"
This commit is contained in:
Přemysl Eric Janouch 2015-09-24 02:03:10 +02:00
parent 5ca07656a1
commit 11aaf1b325

View File

@ -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;