Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Make IRCv3 message tags accessible to scripts #1393

Open
RenaKunisaki opened this issue Jun 11, 2015 · 4 comments · May be fixed by #2580
Open

Make IRCv3 message tags accessible to scripts #1393

RenaKunisaki opened this issue Jun 11, 2015 · 4 comments · May be fixed by #2580

Comments

@RenaKunisaki
Copy link

From what I can see, the Python interface offers no way to access the IRCv3 tags of a received message.

Example message:

@color=#FF4500;display-name=PumpkinAppearifier;emotes=;subscriber=0;turbo=0;user-type=;user_type= :pumpkinappearifier!pumpkinappearifier@pumpkinappearifier.tmi.twitch.tv PRIVMSG #themartonfi1228 :Hey Marton

Even the RAW LINE server hook doesn't include these in word, word_eol or (as best I can tell) attributes parameters (though attributes appears not to be iterable so it's hard to say for sure).

@MikeZeDev
Copy link

I second that. This would be useful , at least for Twitch. I am using lua.

@TingPing
Copy link
Member

TingPing commented Sep 6, 2016

Would basically require a new API. The attributes api we have is not flexible enough for this.

In another project of mine I have a parser that makes a hashtable of the tags though: https://github.com/TingPing/irc-client/blob/master/src/irc-message.c#L116-L176

@gpnoel
Copy link

gpnoel commented Feb 16, 2018

Will this become a feature in the future, not necessarily soon but just at some point? Also, is that parser of yours able to be used in conjunction with HexChat?

@TingPing
Copy link
Member

No active work has started on it but it could happen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

4 participants