aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/erc/erc.el9
2 files changed, 11 insertions, 3 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6d039bac4a8..bf942cb1872 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2853,6 +2853,11 @@ The new '/opme' convenience command asks ChanServ to set the operator
2853status for the current nick in the current channel, and '/deopme' 2853status for the current nick in the current channel, and '/deopme'
2854unsets it. 2854unsets it.
2855 2855
2856---
2857*** Fix the order of '/whois' arguments sent to the server.
2858Per RFC 1459 and RFC 2812, when given, the optional 'server' argument
2859for the WHOIS command must come before the 'user' argument, not after.
2860
2856** xwidget-webkit mode 2861** xwidget-webkit mode
2857 2862
2858--- 2863---
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)