about summary refs log tree commit diff
path: root/users/glittershark
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark')
-rw-r--r--users/glittershark/emacs.d/irc.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/users/glittershark/emacs.d/irc.el b/users/glittershark/emacs.d/irc.el
index 1b634dec78f4..866c7d556530 100644
--- a/users/glittershark/emacs.d/irc.el
+++ b/users/glittershark/emacs.d/irc.el
@@ -106,7 +106,11 @@ If the buffer is currently not visible, makes it sticky."
 
 (add-hook 'erc-connect-pre-hook 'my-erc-define-alerts)
 
-(advice-add #'erc-user-input :filter-return #'s-trim)
+(defun fix-irc-message (msg)
+  (let ((msg (s-trim msg)))
+    (if (string-equal msg ":q") "" msg)))
+
+(advice-add #'erc-user-input :filter-return #'fix-irc-message)
 
 (comment
  (my-erc-define-alerts)