on *:input:*:{
if (!$hget(autocorrect)) { hadd -m autocorrect monday Monday }
var -n %temp = $regsubex($parms,/((?<=^| )\w+)/g,$iif($hget(autocorrect,\1) != $null,$v1,\1))
if ($left($1,1) != /) && (!$ctrlenter) {
$spaces(send, PRIVMSG $target : $+ %temp)
$spaces(echo, -aitc own $+(<,$me,>) %temp)
halt
}
}