From 78b4832bfe10b90e522bbb51c05ee19a361bf318 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Tue, 25 Feb 2020 03:00:36 -0500 Subject: Add raw modes to mode message --- handle.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/handle.c b/handle.c index 4cb0e94..58fdce2 100644 --- a/handle.c +++ b/handle.c @@ -584,10 +584,15 @@ static void handleMode(struct Message *msg) { ); } } - if (strlen(buf) < 2) return; + + catf(buf, sizeof(buf), " (%s", msg->params[1]); + for (uint i = 2; i < ParamCap; ++i) { + if (!msg->params[i]) break; + catf(buf, sizeof(buf), " %s", msg->params[i]); + } uiFormat( id, Cold, tagTime(msg), - "\3%02d%s\3\t%s", hash(msg->user), msg->nick, &buf[2] + "\3%02d%s\3\t%s)", hash(msg->user), msg->nick, &buf[2] ); } -- cgit 1.4.1-2-gfad0