projects
/
irc-logger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f2c823
)
r10295:
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 29 Jan 2005 01:25:37 +0000
(
01:25
+0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Sat, 29 Jan 2005 01:25:37 +0000
(
01:25
+0000)
logger.lisp
patch
|
blob
|
history
diff --git
a/logger.lisp
b/logger.lisp
index 99b5bd3cb034c66ec75607b60dca0c9096067f38..7988c55a78fabd84f3ffb5a85a885d2fc5e51861 100644
(file)
--- 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 :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)))
(defun nick-hook (msg)
(output-event msg :nick nil (trailing-argument msg)))