just do ./join then the chan and your bot should join the chan you said.
on *:TEXT:./join #*:#: {
if ($nick == YOURNICK) || ($nick == OPTIONAL) {
/join $2-
}
else {
msg $chan Sorry $nick, you do not have permission to use this command.
}
}
You could have combined the quit, join, cycle, and identify part of your code into one snippet, using one text event. I have no idea why you posted them separately:
on $*:text:/^.\/(join\s\43\S+|quit|cycle|identify)\z/iS:#:{
if !%f {
inc -u4 %f
if $istok(*!*@YourHost *!*@Optional,$wildsite,32) {
goto $regml(1)
:join
join $2-
halt
:quit
quit
halt
:cycle
hop -c #
halt
:identify
nick $mnick
msg nickserv ghost $mnick pass
halt
}
else {
msg # Sorry $nick $+ , you do not have permission to use $+(./,$regml(1)) $+ .
}
}
}
You can use mirc's /hop -c # in place of /cycle. I'm a little unsure as to why you use the ghost command in this case...
You should use the host for certain people to use the code. Using $nick is not safe because people can clone easily.