How to search text file for specific word/phrase and reply with that line. reddit / irc ---------------------------------------------------------------------- therealcmiller · 2014-09-09 17:37 Is there a way to have mIRC search for a certain word of phrase in a line using $read? Basically what I want to do is does "!quote word" it will respond with a line containing that word or phrase in the $2. Something like **"on *:TEXT:!quote *:#: { msg $chan $read(file.txt, *search for $2*) } "**. ---------------------------------------------------------------------- roaawr · 2014-09-10 11:48 Can't look into it, because I'm on mobile right now, but it should be possible with something like this: on *:text:!quote *:#chan:{ msg $chan $read(file.txt, npw, $2-) } n gets mIRC to treat the text in the file as plain; p is to treat | as plain and w is for wildcard See mIRC's helpfile for $read and http://en.wikichip.org/wiki/mirc/text_files <: ---------------------------------------------------------------------- therealcmiller · 2014-09-10 17:01 Works perfectly. Thank you so much! ---------------------------------------------------------------------- therealcmiller · 2014-09-10 21:14 Might have to type the whole phrase though. I'll look into more, but this is a good start