Menu actions and access from nicklist

By Hermes on Mar 09, 2011

Hi, there is my first snippet. Its just menus when you right click on a nick in the nicklist. With it you can:
-warn, kick and kick+ban an user (made with reasons)
-manage access levels for the nick you click on (add (5 levels) and delete)
-see the access list
I'm listening to all comments, good or bad =)

menu nicklist { 
  actions 
  .warnings   
  ..colors : msg $chan [warning: $1 change your color!]
  ..caps : msg $chan [warning: $1 remove your caps!]
  ..insults : msg $chan [warning: $1 stop to offend the others!]
  ..spam : msg $chan [warning: $1 don't spam next time!]
  ..links : msg $chan [warning: $1 allowed links: youtube, facebook, myspace, hi5]
  ..+18 : msg $chan [warning: $1 don't talk about 18+ themes!]
  .kick     
  ..colors : kick $chan $1 Kick: change your color!
  ..caps : kick $chan $1 Kick: remove your caps!
  ..insults : kick $chan $1 Kick: stop to offend the others! 
  ..spam : kick $chan $1 Kick: don't spam next time!
  ..links : kick $chan $1 Kick: allowed links: youtube, facebook, myspace, hi5.
  ..+18 : kick $chan $1 Kick: don't talk about 18+ themes!
  .kickban 
  ..colors : ban -k $chan $1 Ban: change your color!
  ..caps : ban -k $chan $1 Ban: remove your caps!
  ..insults : ban -k $chan $1 Ban: stop to offend the others! 
  ..spam : ban -k $chan $1 Ban: don't spam!
  ..links : ban -k $chan $1 Ban: allowed links: youtube, facebook, myspace, hi5.
  ..+18 : ban -k $chan $1 Ban: don't talk about 18+ themes!
  Access
  .Add
  ..voice : cs access $chan add $1 3
  ..halfop : cs access $chan add $1 4
  ..op : cs access $chan add $1 9
  ..admin : cs access $chan add $1 9998
  ..owner : cs access $chan add $1 9999
  .delete
  ..voice : cs access $chan del $1 
  ..halfop : cs access $chan del $1 
  ..op : cs access $chan del $1 
  ..admin : cs access $chan del $1 
  ..owner : cs access $chan del $1 
  .Access list : cs access $chan list 
}

Comments

Sign in to comment.
Hermes   -  Mar 12, 2011

Aha2Y why did u render thanks Machine?

 Respond  
Jordyk19   -  Mar 12, 2011

Thanks alot Machine :)

 Respond  
Hermes   -  Mar 12, 2011

Thanks Machine =)

 Respond  
Machine   -  Mar 12, 2011

Nice snippet Hermes, im using it, and it perform very good !

 Respond  
Hermes   -  Mar 11, 2011

Ok :)

 Respond  
Jethro   -  Mar 11, 2011

Not every network supports the abbreviated chanserv command: /cs
It'd be best to use: /msg chanserv access

 Respond  
Hermes   -  Mar 11, 2011

Haaaa okay :D

 Respond  
Phil_FW   -  Mar 11, 2011

no problem dude :D and its ANG_Enlisted from the FW mircscripters room :P lol

 Respond  
Hermes   -  Mar 10, 2011

ah yes now i remember x) oops :p thanks phil24 =)

 Respond  
Phil_FW   -  Mar 10, 2011

for the access you could just use the following


  Access
  .Add
  ..voice : cs access $chan add $1 3
  ..halfop : cs access $chan add $1 4
  ..op : cs access $chan add $1 9
  ..admin : cs access $chan add $1 9998
  ..owner : cs access $chan add $1 9999
  .delete : cs access $chan del $1 
  .Access list : cs access $chan list 
}

that's just a little suggestion to make it a few lines shorter :)

 Respond  
Hermes   -  Mar 09, 2011

okay Jethro_ :)

 Respond  
Jethro   -  Mar 09, 2011

If you don't specify a ban type, mIRC will use the type 6 address.

 Respond  
Hermes   -  Mar 09, 2011

Thanks Dean =)
Thanks for the tip napa182, im going to remember it next time =)

 Respond  
napa182   -  Mar 09, 2011

nice first post Hermes.
on the kickban part maybe use

ban -k # $$1 2 ban reason

that way it bans the host #2 so the user cant just change his/her nick an come back
i used host 2 as an example
i also used $$1 cuz it is possible to get an error if no nick is selected in the nicklist.

 Respond  
_Dean_   -  Mar 09, 2011

Nice one Hermes =)

 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.