Hi there! So .. you want only ops to use these commands. First of all i suggest you use a command prefix for the commands . The usuals are ! , & , @ , but if you'll use it or not or which you use is really up to you. Secondly if you want these to work like commands you need to use some more if's
on *:text:*:#: {
;;;You use * instead of a word in the event part;;;
if ($strip($1) == !nickinfo) {
;;;So Now You Use an if. $strip makes the script see the text even if the $nick ;;;;;;uses colours. So $1 returns the first word , im using $strip($1) .;;;;;
if ($nick isop $chan) {
if ($strip($2) == $null) {
;;;I guessed you wanted it to notice the selections if the rest was blank So I ;;;;;;;;;Added if ($strip($2) == $null) . $null returns blank
.notice $nick Type Your selections nick info - auto op - nick expire ...
}
if ($strip($2-) == nick info) {
.notice $nick get all info about nick (if registered) type /msg nickserv info
;; $2- returns word 2 and up ;;; $strip($2-) returns word 2 and up uncoloured
}
elseif ($strip($2-) == auto op) {
;;; use of elseif because previous if refers to $strip($2-) as well
.notice sets wether the given nickname will get auto op or not...
}
elseif ($strip($2-) == nick expire) {
.notice $nick sets wether the nick will expire....
}
}
;;closed the bracket opened at if ($nick isop $chan) {
;;;use of elseif here because we closed isop
elseif ($nick !isop $chan) {
.notice $nick Sorry ,only can be used by ops
}
}
This is it
this will work the following way.
<you> !nickinfo
<script> Sorry commands only for ops
------------------------------------------------------------
<@you> !nickinfo
<script> Please make your selections bla bla bla
<@you> !nickinfo nick info
<script> shows all info about a nick bla bla bla
<@you> !nickinfo auto op
<script> determines wether the nick will get auto op bla bla
<@you> !nickinfo nick expire
<script> sets if the script will expire bla bla bla