; A simple and fast nick completer

; Trigger when you enter text in a channel editbox
on *:INPUT:#: {

  ; Check if if is no a command (starting with /) and if it has a : as trigger (can be replaced)
  if ($regex($1,^[^/]+.*:$)) {

    ; look if at least one nick matches, send the msg to the channel and stops normal output
    if ($fline(#,$+(*,$left($1,-1),*),1,1)) { msg # $line(#,$v1,1) $+ : $2- | halt }
  }
}