NVM its done now. Sorry to necro an old script but it works great and wanted to add Ops use only? Where does that go into the code?
With this syntax you can check if someone is op (look line 48 in the code)
if ($nick($chan,$nick,@&~)) { Rest of the code }
Or you can do this if ($nick isop $chan) { Rest of the code }
With this syntax you can check if someone is op (look line 48 in the code)