Code:
on *:input:#: {
  if ($ctrlenter) || ($left($1,1) === $readini(mirc.ini,text,commandchar)) { return }
  set %tline $1-
  set %tchn $chan
  unset %idle
  inc %_ilines
  iback
  if (%ncc = 2) {
    .msg $target $1-
    echo -a $inpline
    halt
  }
  set %tline $2-
  set %nick $nick(#,$fline(#,$replace($1,%nctr,*),1,1))
  if (%nick !ison $active) { set %tline $1- | echo -a $inpline | .msg $target $1- | halt }
  set %tline %nick $+ %owcr $2-
  .msg $target %nick $+ %ncchr $2-
  echo -a $inpline
  halt
}

$inpline return the text that was inserted, how ever i have a small problem, when i type just a :, then it pic the first nick in the nick list, and then complete it, how would i make it send the text if it's nothing entered behind the :, like te: will complete test: , but : would just return : ...


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }