JOIN/PART changes, temporary and future

For mIRC users/bots, mIRC’s next public release will support IRCv3 message tags. There is no ETA but the closed beta just got support for them though the implementation does not split/parse the tags for you. The tags are simply removed from messages and stored in $msgtags for use in scripted events.

You are still required to send the respective CAP REQ messages BEFORE joining any channels/streams:

on *:LOGON:*:{
  if (!$regex($server, /^(tmi|irc)\.twitch\.tv$/i)) { return }
  raw CAP REQ :twitch.tv/membership
  raw CAP REQ :twitch.tv/tags
  raw CAP REQ :twitch.tv/commands
}

;; Example usage:
on *:TEXT:!amSub:#:{
  var %isSubscriber = $iif(subscriber=0 isin $msgtags, yes, no)
  msg # $nick are you subbed: %isSubscriber
}
1 Like