demos: irc-bot: Refactor message handling using new handle-message.
[8sync.git] / doc / 8sync.texi
index 7412ea1e75942a11cdf532ddaa51f8a221830a95..8dea9f3f63819dc0bd5a528b23eee8465e31e61d 100644 (file)
@@ -1018,8 +1018,7 @@ Edit the respond section to see what channel it's really sending
 things to:
 
 @example
-(define-method (handle-line (irc-bot <my-irc-bot>) message
-                            speaker channel line emote?)
+(define-method (handle-message (irc-bot <my-irc-bot>) message)
   ;; [... snip ...]
   (define (respond respond-line)
     (<- (actor-id irc-bot) 'send-line (pk 'channel channel)
@@ -1048,8 +1047,7 @@ to looks like our own username that we respond back to the sender.
 (We can remove the pk now that we know what's going on.)
 
 @example
-(define-method (handle-line (irc-bot <my-irc-bot>) message
-                            speaker channel line emote?)
+(define-method (handle-line (irc-bot <my-irc-bot>) message)
   ;; [... snip ...]
   (define (respond respond-line)
     (<- (actor-id irc-bot) 'send-line