4.1 Skipping /away messages using handlers

The IRC protocol specifies how certain events are signaled from server to client. These events have numbers and are dealt with using so-called handlers. You can override existing handlers by exploiting the naming convention adopted for rcirc.

Here’s how to stop rcirc from printing /away messages. Since rcirc doesn’t define a 301 handler, you don’t need to require rcirc before defining the handler:

(defun rcirc-handler-301 (process cmd sender args)
  "/away message handler.")