Advertisement
Guest User

Untitled

a guest
Mar 25th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. (defun message-get-since (sig)
  2. (let* ((msg (cond ((typep sig 'string)
  3. sig)
  4. ((typep sig 'cons)
  5. (nth 3 sig))
  6. (t (error "Unsupported type passed to 'message-get-since'"))))
  7. (r (if (not msg)
  8. 0
  9. (parse-integer (remove-if-not #'digit-char-p msg)
  10. :junk-allowed t))))
  11. (if (not r)
  12. 1
  13. r)))
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement