From: Kevin M. Rosenberg Date: Sat, 29 Jan 2005 01:25:37 +0000 (+0000) Subject: r10295: X-Git-Tag: v0.9.3~7 X-Git-Url: http://git.kpe.io/?p=irc-logger.git;a=commitdiff_plain;h=3fae70815a20ec802a01eebbd3c6ed9340880fef r10295: --- diff --git a/logger.lisp b/logger.lisp index 99b5bd3..7988c55 100644 --- a/logger.lisp +++ b/logger.lisp @@ -396,9 +396,13 @@ (output-event msg :privmsg channel (trailing-argument msg)))))) (defun action-hook (msg) - (output-event msg :action (first (arguments msg)) - (subseq (trailing-argument msg) 8 - (- (length (trailing-argument msg)) 1)))) + (let ((end (- (length (trailing-argument msg)) 1))) + ;; end has been as low as 7 + (when (< end 8) + (warn "End is less than 8: `$A'." msg)) + (output-event msg :action (first (arguments msg)) + (subseq (trailing-argument msg) (min 8 end) + (- (length (trailing-argument msg)) 1))))) (defun nick-hook (msg) (output-event msg :nick nil (trailing-argument msg)))