You don't want to have more then one on TEXT event in one file, this would be much more affective:
I also see alot of errors in this, this code should fix everything.
on *:TEXT:#:{
if ($me isop $chan) {
if ($1 == .k) { /kick # $2 $3- }
}
elseif ($1 == .j) { /join $2 }
elseif ($1 == .p) { /part $2 }
elseif ($1 == .quit) { /quit $2- }
elseif ($1 == .op) { /mode $chan +o $2 }
elseif ($1 == .dop) { /mode $chan -o $2 }
}