Can't get the IRCv3 tags capability to work

Hi!

Recently I’ve been trying to create a little Twitch Bot (with mIRC) just for fun. While most things are working without any problems I can’t seem to get the tags capability to work. To be specific, instead of seeing a message formatted like that:

@ban-duration=ban-duration;ban-reason=ban-reason :tmi.twitch.tv CLEARCHAT #channel :user

This is all I get:

tmi.twitch.tv CLEARCHAT #zakath2k cookietestmonster

Same with PRIVMSG and all other events. While testing I’m trying to retrieve the the output like that:

raw *:*:{
  echo -s raw: $rawmsg
}

I did request all 3 capabilities using:

 raw CAP REQ :twitch.tv/membership
 raw CAP REQ :twitch.tv/commands
 raw CAP REQ :twitch.tv/tags

and got the following responses which make me assume the requests should have been successful:

CAP ACK twitch.tv/membership
-
CAP ACK twitch.tv/commands
-
CAP ACK twitch.tv/tags

So I don’t understand what I’m doing wrong. I did some research trying to find threads of other people having a similar problem but they usually had the problem because they didn’t request the tags capabilities and once they did the problem was fixed. So I’m thinking I must be missing something else.

Has anyone got a clue what could be the problem and can help me out?

Thanks

mIRC processes the msgtags before it triggers the raw event; you can look up msgtags using $msgtags(tag-name).tag and $msgtags(tag_name).key

See /help $msgtags in mIRC for more info

1 Like

Oh I didn’t know mIRC would do that, must a rather recent feature because I’m pretty sure it didn’t do that a while ago.

Thanks for pointing it out, that helped a lot.

Added July 17th, 2015 for mIRC v7.42; Item 26 & 28 as per mIRC’s versions.txt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.