on *:input:*: {
if (/* !iswm $1) && (!* !iswm $1) && (~* !iswm $1) {
hdef
var %msg = $1-
var %ccode =
if (!%checkr) {
var %ccode = $+ $iif((%checkrv),) $+ $iif((%checkrk),$+(,%f,$chr(44),%b)) $+ $iif((%checkro),)
if (%ran.ztext == 1) { var %a = $replace($rand(2,15),8,4) | if (%a <= 9) { var %b = $+(0,%a) } | else { var %b = %a } | var %ccode = $+ $iif((%checkrv),) $+ $iif((%checkrk),$+(,%b)) $+ $iif((%checkro),) }
if (%ran.wtext == 1) { var %msg = $ranw(%msg) }
}
if (%talkers) { var %msg = $talkers(%ccode, %msg) }
if (<sound isin %msg) { talk.proc %msg | if ($exists($wavedir $+ %z)) { .sound %z } | var %tmp = <sound %z $+ > | set -nu %msg $remove(%msg,$chr(32) $+ %tmp) | /sound %z }
if (%nickcom) { var %msg = $nickcom(%ccode, $active, %msg) }
if (!%checkr) { var %msg = %ccode $+ %msg }
msg $active %msg
unset %z %zz
}
}