try this version of your
on *:JOIN:#Screwthischat: {
if(%autoop == on) {
if($nick == Kdogground2) { chanserv op #screwthischat Kdogground2 }
}
removed things you don't need
if something is true { do this }
if it isnt true you dont need/want something unless you need a particular event to happen.
if nick is an op { op }
else {voice }
as an example
$iif($nick isop $chan, greets op,greets user)
on *:JOIN:#Screwthischat: {
if ($nick == Kdogground2) {
$iif(%autoop == on,chanserv op #screwthischat Kdogground2, echo -a autoop is off)
}
}