yeah I dont like comchan, but for the sake of the vast array of networks we all use I chose it in the example.
I think on join, if you get a pm within 3 seconds from the exact moment you joined a channel it is a script response. Dont forget to calculate the time it takes to open a whisper window, type and hit enter. I think you would really have to be trying to beat a script to do this. Or you can decrease the timer length.