diff options
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/erc/erc.el | 9 |
2 files changed, 11 insertions, 3 deletions
| @@ -2853,6 +2853,11 @@ The new '/opme' convenience command asks ChanServ to set the operator | |||
| 2853 | status for the current nick in the current channel, and '/deopme' | 2853 | status for the current nick in the current channel, and '/deopme' |
| 2854 | unsets it. | 2854 | unsets it. |
| 2855 | 2855 | ||
| 2856 | --- | ||
| 2857 | *** Fix the order of '/whois' arguments sent to the server. | ||
| 2858 | Per RFC 1459 and RFC 2812, when given, the optional 'server' argument | ||
| 2859 | for 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 | ||
| 3304 | If SERVER is non-nil, use that, rather than the current server." | 3304 | If SERVER is non-nil, use that, rather than the current server. |
| 3305 | ;; FIXME: is the above docstring correct? -- Lawrence 2004-01-08 | 3305 | This is useful for getting the time USER has been idle for, if |
| 3306 | USER is on a different server of the network than the current | ||
| 3307 | user, since only the server the user is connected to knows this | ||
| 3308 | information." | ||
| 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) |