diff options
author | June McEnroe <june@causal.agency> | 2022-02-26 16:19:30 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-02-26 16:19:30 -0500 |
commit | 097f17c3e04774f365c7c75f6142ad41b1bc175f (patch) | |
tree | 40e782f6cf82d61a1e4d958553cd806642d5bf61 /handle.c | |
parent | Request twitch.tv/tags capability (diff) | |
download | catgirl-097f17c3e04774f365c7c75f6142ad41b1bc175f.tar.gz catgirl-097f17c3e04774f365c7c75f6142ad41b1bc175f.zip |
Use twitch display-name tag twitch
Not sure if replacing the nick is really the best thing, but since twitch only lets you change case, it should be safe.
Diffstat (limited to '')
-rw-r--r-- | handle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/handle.c b/handle.c index 388a122..e68c4b3 100644 --- a/handle.c +++ b/handle.c @@ -80,6 +80,9 @@ static void require(struct Message *msg, bool origin, uint len) { if (!msg->nick) msg->nick = "*.*"; if (!msg->user) msg->user = msg->nick; if (!msg->host) msg->host = msg->user; + if (msg->tags[TagDisplayName]) { + msg->nick = msg->tags[TagDisplayName]; + } } for (uint i = 0; i < len; ++i) { if (msg->params[i]) continue; |