what I would do is

a] load the whole text file into a hashtable or a window
b] when you msg the channel, delete the line in question from table or window
c] if the table/window is empty, reload.