diff options
-rw-r--r-- | degesch.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |