im not sure if this is what you want

on *:JOIN:#specificchannel:{
if (%vc > 5) { hop | unset %vc }
else {
.write log.txt $nick Joined # | inc %vc
}
}

on ME:*:JOIN:#specificchannel:{ .write log.txt I have joined # at $time(HH:nn) }


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }