(erc-input-message): Replace last-command-char with last-command-event.