Maybe you're familiar with this IRC log samples.
15:54 [rgc] xb 15:54 [rgc] ooops, C-fail 12:02 [xyz] ls 12:02 [xyz] oops 00:21 [foo] cd 00:22 [foo] wrong buffer :/
To avoid that, some time ago I wrote some elisp to make erc-buffers read-only, but I just came up with a better solution:
(defun rgrau-erc-oops (txt) (when (member txt '("ls" "xb" "cd")) (setq erc-send-this nil))) (add-to-list 'erc-send-pre-hook 'rgrau-erc-oops)
It's too simple to make an erc module out of that(isn't it?), so I just put it in this blog entry.