I've been thinking about this for a while, but I'm not sure how I'd pull it off. Something with $read, I'm sure, but I don't /what/ to do with $read. Basically, let's say if $nick join #, and if $nick matched a line in a .txt file, it would run a command on them.
Something like
if ($nick isin $read(friends.txt)) { msg $chan Hi there buddy! }
But that'd pick a random line. And I'm sure that's not a valid format. Just a demonstration of sorts.
Ideas?