aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/erc
diff options
context:
space:
mode:
authorAmin Bandali2021-09-29 00:44:43 -0400
committerAmin Bandali2021-09-29 01:01:21 -0400
commit081eb52e4d8441a82134db5b34848474a1d01acf (patch)
tree0ddcce002b8fab7d58888a6af2c93bdfb4d74b40 /lisp/erc
parentfcfcb35791495ea842d30efc3d87a088ecd57977 (diff)
downloademacs-081eb52e4d8441a82134db5b34848474a1d01acf.tar.gz
emacs-081eb52e4d8441a82134db5b34848474a1d01acf.zip
Switch the order of ERC's '/whois' arguments sent to the server
* lisp/erc/erc.el (erc-cmd-WHOIS): Switch the order of 'server' and 'user' arguments sent to the server. Per RFC 1459 and RFC 2812, the optional 'server' argument command comes before the 'user' argument, not after. While at it, update the doc string to explain why one may want to specify the 'server' argument. * etc/NEWS: Announce the change.
Diffstat (limited to 'lisp/erc')
-rw-r--r--lisp/erc/erc.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index ac0c08bd3a2..7fa2d37c9f2 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -3301,10 +3301,13 @@ a script after exceeding the flood threshold."
3301(defun erc-cmd-WHOIS (user &optional server) 3301(defun erc-cmd-WHOIS (user &optional server)
3302 "Display whois information for USER. 3302 "Display whois information for USER.
3303 3303
3304If SERVER is non-nil, use that, rather than the current server." 3304If SERVER is non-nil, use that, rather than the current server.
3305 ;; FIXME: is the above docstring correct? -- Lawrence 2004-01-08 3305This is useful for getting the time USER has been idle for, if
3306USER is on a different server of the network than the current
3307user, since only the server the user is connected to knows this
3308information."
3306 (let ((send (if server 3309 (let ((send (if server
3307 (format "WHOIS %s %s" user server) 3310 (format "WHOIS %s %s" server user)
3308 (format "WHOIS %s" user)))) 3311 (format "WHOIS %s" user))))
3309 (erc-log (format "cmd: %s" send)) 3312 (erc-log (format "cmd: %s" send))
3310 (erc-server-send send) 3313 (erc-server-send send)