aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/erc/erc.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 9b4c6ac48a3..eee79464a9a 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -409,16 +409,18 @@ in the current buffer's `erc-channel-users' hash table."
409(define-inline erc-get-server-user (nick) 409(define-inline erc-get-server-user (nick)
410 "Find the USER corresponding to NICK in the current server's 410 "Find the USER corresponding to NICK in the current server's
411`erc-server-users' hash table." 411`erc-server-users' hash table."
412 (inline-quote (erc-with-server-buffer 412 (inline-letevals (nick)
413 (gethash (erc-downcase ,nick) erc-server-users)))) 413 (inline-quote (erc-with-server-buffer
414 (gethash (erc-downcase ,nick) erc-server-users)))))
414 415
415(define-inline erc-add-server-user (nick user) 416(define-inline erc-add-server-user (nick user)
416 "This function is for internal use only. 417 "This function is for internal use only.
417 418
418Adds USER with nickname NICK to the `erc-server-users' hash table." 419Adds USER with nickname NICK to the `erc-server-users' hash table."
419 (inline-quote 420 (inline-letevals (nick user)
420 (erc-with-server-buffer 421 (inline-quote
421 (puthash (erc-downcase ,nick) ,user erc-server-users)))) 422 (erc-with-server-buffer
423 (puthash (erc-downcase ,nick) ,user erc-server-users)))))
422 424
423(define-inline erc-remove-server-user (nick) 425(define-inline erc-remove-server-user (nick)
424 "This function is for internal use only. 426 "This function is for internal use only.
@@ -428,9 +430,10 @@ hash table. This user is not removed from the
428`erc-channel-users' lists of other buffers. 430`erc-channel-users' lists of other buffers.
429 431
430See also: `erc-remove-user'." 432See also: `erc-remove-user'."
431 (inline-quote 433 (inline-letevals (nick)
432 (erc-with-server-buffer 434 (inline-quote
433 (remhash (erc-downcase ,nick) erc-server-users)))) 435 (erc-with-server-buffer
436 (remhash (erc-downcase ,nick) erc-server-users)))))
434 437
435(defun erc-change-user-nickname (user new-nick) 438(defun erc-change-user-nickname (user new-nick)
436 "This function is for internal use only. 439 "This function is for internal use only.