I'm trying to write a script that'll part me from a channel when I'm the only user left in that channel.
I've got this far, but it's not working. Could someone please explain what else is needed.
on !*:part:#:{
if ($nick(#,0) <= 1) {
part $chan
}
}
on !*:quit:#:{
if ($nick(#,0) <= 1) {
part $chan
}
}
Thank you for your assistance!!