If you're polling I think checking the $file().mtime would be sufficient. If you don't want to poll and want to keep it all in mirc, you can have all the instances listen on a different port (which will be written to a file), and then use sockets to notify the other instances when necessary.