mIRC Homepage
Posted By: Joe_Dean Limiting an event to voiced users ONLY - 15/06/08 06:37 AM
I don't quite understand the access levels in mIRC. What level would I use to trigger an event on voiced (+v) users ONLY (which would make it so the event isn't triggered on OPs or non-voiced users)?

Thanks.
Posted By: Thrull Re: Limiting an event to voiced users ONLY - 15/06/08 07:10 AM
You can use isvoice to check. /help isvoice will explain it and all the other options you have.
Posted By: Joe_Dean Re: Limiting an event to voiced users ONLY - 15/06/08 07:16 AM
No, I can't use any IF statements in this script, so that's why I asked if there was a specific level for this. :P
Posted By: Joe_Dean Re: Limiting an event to voiced users ONLY - 15/06/08 07:18 AM
My bot has accounts. Upon my request, I can either add a user as a: Bot Operator, Bot Master, or Bot Owner.

Code:
on +100!:text:!commands:#: {
  _showcmd $nick OP
}
on +400!:text:!commands:#: { 
  _showcmd $nick MASTER
}
on +500!:text:!commands:#: { 
  _showcmd $nick OWNER
}


So how do I make an event for someone who doesn't have a bot account but is voiced?
Posted By: Miguel_A Re: Limiting an event to voiced users ONLY - 15/06/08 12:37 PM
why you canĀ“t use if statements on the script ??
Posted By: Riamus2 Re: Limiting an event to voiced users ONLY - 15/06/08 01:28 PM
Access levels are numeric or alpha levels for users who are in your user list. If you want something to work for all voiced users, you either have to add them all to your users list (not a good idea, imo), or else you need to use isvoice in an IF statement. Access levels don't work for anyone not in the user list.
© mIRC Discussion Forums