Skip to content

Commit ea693c4

Browse files
committed
fix infinite loop in private messages
closes #35
1 parent 1ff606f commit ea693c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheme_libs/privmsg.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
(send-action (get-channel) text))
1616

1717
(define (get-channel)
18-
(car (get-message-params)))
18+
(if (string-prefix? "#" (car (get-message-params))) (car (get-message-params)) (get-nick)))
1919

2020
(define (get-text)
2121
(cadr (get-message-params)))

0 commit comments

Comments
 (0)