Skip to content

Commit e86fa4e

Browse files
committed
Allow nil/empty values in payload.
1 parent ea72557 commit e86fa4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

monroe.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ starting with 'd' and ending with 'e'."
158158
(concat "d"
159159
(apply 'concat
160160
(mapcar (lambda (str)
161-
(format "%d:%s" (string-bytes str) str))
161+
(let ((s (if str str "")))
162+
(format "%d:%s" (string-bytes s) s)))
162163
message))
163164
"e"))
164165

0 commit comments

Comments
 (0)