Commit 6d326786 authored by David Byers's avatar David Byers
Browse files

Handle async-new-presentation and async-new-motd correctly.

Detailed changes:
> 	Handle async-new-presentation and async-new-motd correctly:
> 	* async.el (lyskom-parse-async): Set the correct buffer when
> 	looking for confs in the cache.
>
parent 1aab171c
2003-08-14 David Byers <byers@lysator.liu.se>
Handle async-new-presentation and async-new-motd correctly:
* async.el (lyskom-parse-async): Set the correct buffer when
looking for confs in the cache.
Show more stats in non-extended display:
* commands2.el (kom-status-server): Show text, conf and person
statistics in the default display.
......
......@@ -288,19 +288,23 @@ this function shall be with current-buffer the BUFFER."
(old-pres (lyskom-parse-num))
(new-pres (lyskom-parse-num)))
(lyskom-ignore old-pres)
(when (cache-get-conf-stat conf-no)
(set-conf-stat->presentation (cache-get-conf-stat conf-no)
new-pres)
(lp--maybe-update-entry-for-conf conf-no))))
(lyskom-save-excursion
(set-buffer buffer)
(when (cache-get-conf-stat conf-no)
(set-conf-stat->presentation (cache-get-conf-stat conf-no)
new-pres)
(lp--maybe-update-entry-for-conf conf-no)))))
((eq msg-no 21) ; async-new-motd
(let* ((conf-no (lyskom-parse-num))
(old-motd (lyskom-parse-num))
(new-motd (lyskom-parse-num)))
(lyskom-ignore old-motd)
(when (cache-get-conf-stat conf-no)
(set-conf-stat->msg-of-day (cache-get-conf-stat conf-no)
new-motd))))
(lyskom-save-excursion
(set-buffer buffer)
(lyskom-ignore old-motd)
(when (cache-get-conf-stat conf-no)
(set-conf-stat->msg-of-day (cache-get-conf-stat conf-no)
new-motd)))))
(t
(lyskom-skip-tokens tokens)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment