If that's all you want, grab the update for m_chansno. I added something in there so you can broadcast spamfilter hits to a channel too. It seems silly to reinvent the wheel (or the built-in spamfilter mod) just for that.