mIRC Home    About    Download    Register    News    Help

Print Thread
#233529 22/08/11 05:48 PM
Joined: Nov 2009
Posts: 23
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2009
Posts: 23
I need to make it where my mods and hosts can up theirself
the code works for just me once they deop
Code:
on *:text:*!op*:#channel: {
  if ($nick isop $chan) {
    /cs op #bellchatters $2
  }
}

any help would be appreciated

Joined: Mar 2004
Posts: 526
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
'my mods and hosts can up theirself' explain a different way, do not understand what your trying to say


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
HorseC #233542 22/08/11 11:01 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I believe the OP meant "op" ("up" being short for "upgrade [their rank]" ).

In answer, you will want to have some way for those people who should be allowed to op themselves to identify that they have the right to do that. You can't check isop because that doesn't help if they aren't currently an op. You will need to add the user's address or have some kind of password they can use or some other method to let your script know that they are allowed to use the command. Once you decide how to identify the correct people, you can use a check in the script for a password or you can add the users to your user list or just add their addresses to your script directly. There are a variety of ways to do it, but you first need to decide how you want them to identify.


Invision Support
#Invision on irc.irchighway.net
Joined: Nov 2009
Posts: 23
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2009
Posts: 23
password would be fine i can have a differant one for host or asst host


Link Copied to Clipboard