[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 a36c888: Clear erc user list upon disconnection
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 a36c888: Clear erc user list upon disconnection |
Date: |
Sun, 27 Dec 2015 21:37:06 +0000 |
branch: emacs-25
commit a36c88806dcfc993e6af83b0d0f44b077293bc30
Author: Deniz Dogan <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Clear erc user list upon disconnection
* lisp/erc/erc-backend.el (erc-process-sentinel): Clear channel user
lists upon disconnection. This prevents invalid channel
user lists when reconnecting (bug#10947).
---
lisp/erc/erc-backend.el | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index df957d1..06a23e8 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -703,6 +703,9 @@ Conditionally try to reconnect and take appropriate action."
(setq erc-server-ping-handler nil)))
(run-hook-with-args 'erc-disconnected-hook
(erc-current-nick) (system-name) "")
+ (dolist (buf (erc-buffer-filter (lambda () (boundp
'erc-channel-users)) cproc))
+ (with-current-buffer buf
+ (setq erc-channel-users (make-hash-table :test 'equal))))
;; Remove the prompt
(goto-char (or (marker-position erc-input-marker) (point-max)))
(forward-line 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 a36c888: Clear erc user list upon disconnection,
Lars Ingebrigtsen <=