on *:TEXT:!search*:#:{
;-------- Set these vars --------
var %file = FILE.txt, %maxsend = 5
;--------------------------------
;------- Code --------
var %a = 1, %s = $+(*,$2-,*)
:again
if ($read(%file, nw, %s, $calc($readn + 1))) {
tokenize 32 $ifmatch
if (%a <= %maxsend) msg # Match $+(no.,$v1) Link: $1 Description: $2-
inc %a
}
if ($readn) goto again
$iif(%a > %maxsend,msg # A total of $v1 matches were found only $v2 were displayed)
$iif(!%a,msg # No matches found)
;---------------------
}