mIRC Home    About    Download    Register    News    Help

Print Thread
#259417 18/11/16 01:26 PM
T
TillableToast
TillableToast
T
How would I go about seeing if a user is a sub?

Thanks,
Toast

W
wobY
wobY
W
wanna know the same

Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Code:
on *:text:*:*:{ echo -tgs Sub: $msgtags(subscriber).key }


Dont forget to use "req cap" stuff.

W
wobY
wobY
W
so can i use this:
Code:
on *:TEXT:*:#CHANNEL {
  if ($level($nick) >= 50) {
    return
  }
  elseif ($msgtags(subscriber).key = 1) {
    /auser 50 $nick
  }
}


I have it so when someone subs it makes them lvl 50 that's why im looking if the user is higher or equal to lvl 50.

Last edited by wobY; 23/11/16 12:33 PM.
Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Code:
on *:TEXT:*:#CHANNEL {
  if (($level($nick) >= 50) && ($msgtags(subscriber).key == 0)) {
    /auser 0 $nick
  }
  elseif (($msgtags(subscriber).key = 1) && ($level($nick) < 50)) {
    /auser 50 $nick
  }
}

not tested.


Link Copied to Clipboard