Skip to content
General IRCd

Find option

A TG007 community discussion started by B-RiZzY.

Discussion 6 posts
Page 1 of 1
Open
Topic #4833 · 6 published posts · 1,599 views

is there a way i can get a @find script so it can search through a text file?

on admin:TEXT:@find*:#: {
 var %l = 1
 while ($read(test.txt, w, * $+ $2- $+ *, %l)) {
   var %l = $readn , %i = $ifmatch
   msg $chan %i
 }
}

 

Just make sure you replace test.txt with the appropriate file name.

didnt work man?

what r u searching for also there is a search function in mirc

i want people to be able to do an @find w/e to search through a text file

on *:text:@find *:*:{
 set %nick $nick
 filter -fk <file> sendto * $+ $2-*
 unset %nick
}
alias sendto {
 if (%nick != $null) msg $v1 $1-
}