X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-server.el;h=9ee0e905b4a43c062a588c9499b8ae1cb9046e05;hp=2defd707fae89a861b052ac10e83b4a7cf5bf512;hb=3a53a2588a8095152dffbc9ccc37fd0446212333;hpb=37bd1c399d1cd55e31ba31d7ecd1a8f5f0af9fe6 diff --git a/lisp/riece-server.el b/lisp/riece-server.el index 2defd70..9ee0e90 100644 --- a/lisp/riece-server.el +++ b/lisp/riece-server.el @@ -36,7 +36,6 @@ (:service 6667) (:nickname riece-nickname) (:username riece-username) - (:realname riece-realname) (:password) (:function riece-default-open-connection-function) (:coding riece-default-coding-system)) @@ -73,7 +72,7 @@ the `riece-server-keyword-map' variable." plist) (setq plist (cons `(:host ,host) plist)) (unless (equal service "") - (setq plist (cons `(:service ,(string-to-int service)) plist))) + (setq plist (cons `(:service ,(string-to-number service)) plist))) (unless (equal password "") (setq plist (cons `(:password ,(substring password 1)) plist))) (apply #'nconc plist)))) @@ -260,13 +259,17 @@ the `riece-server-keyword-map' variable." (setq riece-send-size 0) (make-local-variable 'riece-last-send-time) (setq riece-last-send-time '(0 0 0)) - (make-local-variable 'riece-obarray) - (setq riece-obarray (make-vector riece-obarray-size 0)) + (make-local-variable 'riece-user-obarray) + (setq riece-user-obarray (make-vector riece-user-obarray-size 0)) + (make-local-variable 'riece-channel-obarray) + (setq riece-channel-obarray (make-vector riece-channel-obarray-size 0)) (make-local-variable 'riece-coding-system) (buffer-disable-undo) (erase-buffer))) (defun riece-close-server-process (process) + (with-current-buffer (process-buffer process) + (run-hooks 'riece-after-close-hook)) (kill-buffer (process-buffer process)) (setq riece-server-process-alist (delq (rassq process riece-server-process-alist)