tempop permops

By _Lestat_ on Dec 05, 2011

just another simple little think to make life easier. pretty self explanatory

Menu Nicklist {
  Ops
  ..PermOp $1 :{ 
    /var %level $$?"What level should $1 be?" 
    /cs access # add $1 %level 
  }
  ..TempOp $1 :{ 
    /var %temp $$?"What level should $1 be set at (Using +q,+a,+o,+h or -q,-a,-o,-h)?" 
    /mode # %temp $1 $1 $1
  }

  ..deleteperm Ops :{   
    /cs access # del $1
  }
  ..Ban $1 :{
    /var %banmsg $$?"What do you want the ban kick message to be?"
    mode $chan +b $address($1,2) 
    kick $chan $1 %banmsg 
  }

  .. Kick $1 :{
    /var %kickmsg $$?"What would you like the kick message to be"
    kick $chan $1 %kickmsg
  }
}

Comments

Sign in to comment.
_Lestat_   -  Dec 05, 2011

KillerX I did change this to some of the way yet keeping var instead of set and getting rid of %tempopnick and adding a bit as you can tell

 Respond  
KilllerX   -  Dec 05, 2011

again, if you want it fully nicklist. It doesn't take much to keep things organized in 1 list of Menu

Menu Nicklist {
  Ops
  ..Perm Ops :{ 
    set %level $$?"What level should they be?" 
    /cs access # add $1 %level 
  }
  ..Temp Ops :{ 
    set %temp $$?"What level should the be set at (Using +q,+a,+o,+h or -q,-a,-o,-h)?" 
    /mode # %temp $1 %tempopnick
  }

  ..delete Ops :{ 
    set %delopnick $$?"What nick to you want to delete?"  
    /cs access # del $1
  }
  ..Ban $1 :{
    set %banmsg $$?"What do you want the ban kick message to be?"
    mode $chan +b $address($1,2) 
    kick $chan $1 %banmsg 
  }

  .. Kick $1 :{
    set %kickmsg $$?"What would you like the kick message to be"
    kick $chan $1 %kickmsg
  }
}

this keeps it all organized, into a op > while also not having to type out, menu nicklist each time.

one Menu would suffice.

 Respond  
Stewie1k94   -  Dec 05, 2011

Lol

 Respond  
FireStar   -  Dec 05, 2011

i know and as you see I am not failing to comment again :)

 Respond  
Stewie1k94   -  Dec 05, 2011

just for your info. But we all seen. :p

 Respond  
Jethro   -  Dec 05, 2011

At least you didn't fail to comment.

 Respond  
FireStar   -  Dec 05, 2011

I fail to read

 Respond  
Jethro   -  Dec 05, 2011

Instead of deleting or replacing the keyword "set," with "var," it's simpler to just add the -l switch next to it. Why change what you have when you can add to it?

set -l and var are interchangeable, just for your info.

 Respond  
_Lestat_   -  Dec 05, 2011

actually changed to nicklist as this would seem to be more useful by nicklist and probly easier to manage

 Respond  
Stewie1k94   -  Dec 05, 2011

Why use /var when you can simply use var hehe

 Respond  
_Lestat_   -  Dec 05, 2011

and Fuzionx I actually just redid it just haven't posted the new version yet

 Respond  
_Lestat_   -  Dec 05, 2011

ok changed from set to /var

 Respond  
_Dean_   -  Dec 05, 2011

why use /set -l when you can simply use /var ?

 Respond  
Fuzionx   -  Dec 05, 2011

Why not add perm/temp/del ops to nicklist too so you can use $1 for the nickname instead of typing it yourself.

 Respond  
KilllerX   -  Dec 05, 2011
menu channel { 
  Ops
  ..Perm Ops :{ 
    set %opnick $$?"What nick to you want to perm op?" 
    set %level $$?"What level should they be?" 
    /cs access # add %opnick %level 
  }
  ..Temp Ops :{ 
    set %tempopnick $$?"What nick to you want to temp op?" 
    set %temp $$?"What level should the be set at (Using +q,+a,+o,+h or -q,-a,-o,-h)?" 
    /mode # %temp %tempopnick %tempopnick
  }

  ..delete Ops :{ 
    set %delopnick $$?"What nick to you want to delete?"  
    /cs access # del %delopnick 
  }
}
menu channel,nicklist {
  ops
  ..Ban $1 :{
    set %banmsg $$?"What do you want the ban kick message to be?"
    mode $chan +b $address($1,2) 
    kick $chan $1 %banmsg 
  }

  .. Kick $1 :{
    set %kickmsg $$?"What would you like the kick message to be"
    kick $chan $1 %kickmsg
  }
}

No need for multiple Menu's. Just use one or 2.

 Respond  
Jethro   -  Dec 05, 2011

Just add the -l switch next to those set commands to make them local: > set -l

 Respond  
Fuzionx   -  Dec 05, 2011

No need to use variables here, and if you do, make sure you use /var instead of /set so they are automatically unset after the command is executed.

 Respond  
FireStar   -  Dec 05, 2011

:) beautiful

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.