Your code has multiple issues.
If you only want this code to work for #lobby, you only need the channel name on the first line. Everywhere else it can be replaced with "$chan"
"$" cannot touch the actual nick or channel name.
; Anyone can run !foobar and see Nero is voice.
on *:text:!foobar:#lobby:{
if (Nero isvoice $chan) {
msg $chan Nero is voice in $chan
}
}
If you only want Nero to be able to kick people, simple version would look like this:
; Syntax: !kick NICK message (message is optional)
; This will only kick normal and voice users. It will not kick ops.
on *:text:!kick *:#lobby:{
; Only kick people if Nero uses this command AND Nero is voice.
if ($nick == Nero) && ($nick isvoice $chan) {
; Only kick voice and regular users.
if ($2 !isop $chan) {
kick $chan $2 $3-
}
}
}
[11:25:54] <@Bot> Hi.
[11:26:20] <+Nero> !kick Bot bye!
[11:26:37] <Dante> Nice try.
[11:26:44] <+Nero> !kick Dante bye!
[11:26:44] * Dante was kicked by Bot (bye!)
I was talking about access levels inside mIRC, not NickServ/ChanServ/Q/X/whatever services the network uses