A similar post was made in the past:
https://forums.mirc.com/ubbthreads.php/topics/246797/Re:_Search_each_line_in_txt_fi

I have a text file with names on each line, if i paste a lot of lines words into mirc, i want the bot to match each token against each name. then paste all the names that were matched as many times as matched.

I dont know what command we would use for this. Also a rough draft would be appreicated