mIRC Home    About    Download    Register    News    Help

Print Thread
#259417 18/11/16 01:26 PM
Joined: May 2016
Posts: 50
T
Babel fish
OP Offline
Babel fish
T
Joined: May 2016
Posts: 50
How would I go about seeing if a user is a sub?

Thanks,
Toast


Life is potato.
Joined: Oct 2016
Posts: 22
W
Ameglian cow
Offline
Ameglian cow
W
Joined: Oct 2016
Posts: 22
wanna know the same

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


Dont forget to use "req cap" stuff.


Dont give a fish - teach to fish!
Joined: Oct 2016
Posts: 22
W
Ameglian cow
Offline
Ameglian cow
W
Joined: Oct 2016
Posts: 22
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: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
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.


Dont give a fish - teach to fish!

Link Copied to Clipboard