mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Is there a way to create another menu option.

e.g.
Menu
-Advanced user Options
--Half op user
--de-half op user
--Admin user
--de-Admin user
--Owner user
--de-owner user
--Warn user
--Ask User to change their Nickname

Half Op - /mode $chan +h $nick
De-half op - /mode $chan -h $nick
Admin user - /mode $chan +a $nick
De-Admin user - /mode $chan -a $nick
Owner User - /mode $chan +q $nick
De-owner User - /mode $chan -q $nick
Warn User - /msg $chan -v $nick | /msg $nick <warning here>
Ask User to change nickname - /msg $nick Your username is not suitable for this enviroment. | /msg $nick Please change your nickname now by typing "/nick <newusernamehere>"


Thanks!

Last edited by seanturner70; 11/11/08 04:15 PM.
Joined: Jul 2004
Posts: 59
L
Babel fish
Offline
Babel fish
L
Joined: Jul 2004
Posts: 59
Not sure if this is what your looking for but this will add a menu to the nick list and preform the action on a highlighted nick. Im not sure what the /notice $chan -v $1 in Warn user is but added it. if its to devoice change /notice to /mode

Menu nicklist {
Advanced user Options
.Half Op:/mode $chan +h $1
.De-half op:/mode $chan -h $1
.Admin user:/mode $chan +a $1
.De-Admin user:/mode $chan -a $1
.Owner User:/mode $chan +q $1
.De-owner User:/mode $chan -q $1
.Warn User:/notice $chan -v $1 | /notice $1 $$?="Your Warning"
.Ask User to change nickname:/notice $1 Your username is not suitable for this enviroment. | /notice $1 Please change your nickname now by typing "/nick <newusernamehere>"
}

Last edited by LittleJohn; 11/11/08 03:59 PM.
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Thanks!

That really helped me learn smile

(and it will become really useful!)

Last edited by seanturner70; 11/11/08 04:07 PM.
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The first notice in
Code:
 .Warn User:/notice $chan -v $1 | /notice $1 $$?="Your Warning"
should be /mode

P.S.: Please use Code Tags (the button looks like the # character) around code in the future.

Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Yeah, I know... Just a mistuke when typing quickly.

My Final one: http://seanturner70.pastebin.com/f2f50f96

Last edited by seanturner70; 11/11/08 07:54 PM.

Link Copied to Clipboard