mIRC Home    About    Download    Register    News    Help

Print Thread
#24022 13/05/03 09:16 PM
Joined: May 2003
Posts: 5
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: May 2003
Posts: 5
When using isop, you can only see if the user is opped after the trigger (like 1:rawmode:). I would also like to know if the person was an @ before the trigger.

something like: if $nick wasop #

#24023 14/05/03 03:45 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Most events will respond to ison,isop,isvoice,isreg... etc as if the event hasn't occured yet. It does exactly as you want it to. If you want to check the outcome of the event, use /updatenl (Update Nick List) in the script and all operators and identifiers will reflect post-event statuses.
Code:
On *:OP:#: {
  echo -a $opnick was $iif($opnick isop $chan,Opped,NOT Opped) before this event.
  updatenl
  echo -a $opnick is now $iif($opnick isop $chan,Opped,NOT Opped) after this event.
}

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard