mIRC Home    About    Download    Register    News    Help

Print Thread
#254369 07/08/15 03:20 PM
K
keyeslol
keyeslol
K
With the latest release of mirc, $msgtags support is supposed to be included.

I am trying to read in ircv3 tags, using this new identifier and wrote some simple code to check. I've requested tags using the appropriate CAP REQ.

Code:
  if (subscriber=1 isin $msgtags) {
    echo -a yes
  }
  if (subscriber=0 isin $msgtags) {
    echo -a no
  }


My expectation is for yes to be output, with the assumption that subscriber is indeed 1.

#254370 07/08/15 04:22 PM
P
paper0rplastic
paper0rplastic
P
I believe this works:

Code:
  if ($msgtags(subscriber).key == 1) {
    echo -a yes
  }
  if ($msgtags(subscriber).key == 0) {
    echo -a no
  }

#254371 07/08/15 04:26 PM
K
keyeslol
keyeslol
K
I am getting the same result. One thing i've noticed, since upgrading to 7.43 i no longer am receiving raw events. Could this be the issue? Or did 7.43 parse raw silently.

#254388 08/08/15 03:40 PM
K
keyeslol
keyeslol
K
Originally Posted By: keyeslol
I am getting the same result. One thing i've noticed, since upgrading to 7.43 i no longer am receiving raw events. Could this be the issue? Or did 7.43 parse raw silently.


I figured this out, as for some reason my PC i was testing from had some sort of issue. The correct way is:

Code:
if subscriber=1 isin $msgtags {
...insert code here...
}

if user-type=mod isin $msgtags {
...insert code here etc...
}


Link Copied to Clipboard