projects
/
8sync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d86e4ab
)
echo back message stuff
author
Christopher Allan Webber
<cwebber@dustycloud.org>
Mon, 23 Nov 2015 21:26:39 +0000
(15:26 -0600)
committer
Christopher Allan Webber
<cwebber@dustycloud.org>
Mon, 23 Nov 2015 21:26:39 +0000
(15:26 -0600)
demos/irc.scm
patch
|
blob
|
history
diff --git
a/demos/irc.scm
b/demos/irc.scm
index eabc31d82b3baa44eb73f62db4df9ab55ea14d02..37e4e0195ecbbe4a5b449aa19b39d8521a3e94f1 100755
(executable)
--- a/
demos/irc.scm
+++ b/
demos/irc.scm
@@
-162,14
+162,16
@@
(string-join (cons first-word rest-message) " ")
#f)))))
(string-join (cons first-word rest-message) " ")
#f)))))
-(define (
default-handle-privmsg
my-name speaker
-
channel-name message is-action)
+(define (
echo-back-message
my-name speaker
+ channel-name message is-action)
(if is-action
(format #t "~a emoted ~s in channel ~a\n"
speaker message channel-name)
(format #t "~a said ~s in channel ~a\n"
speaker message channel-name)))
(if is-action
(format #t "~a emoted ~s in channel ~a\n"
speaker message channel-name)
(format #t "~a said ~s in channel ~a\n"
speaker message channel-name)))
+(define default-handle-privmsg echo-back-message)
+
(define* (make-handle-line #:key
(handle-privmsg default-handle-privmsg))
(define (handle-line socket line my-username)
(define* (make-handle-line #:key
(handle-privmsg default-handle-privmsg))
(define (handle-line socket line my-username)