summaryrefslogtreecommitdiff
path: root/lisp/erc/erc-dcc.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-09-19 13:21:56 +0200
committerStefan Kangas <stefan@marxist.se>2021-09-19 13:21:56 +0200
commit8772d81966f0b1cec400fd638c5ab809cae91df4 (patch)
tree5114593d392153ddbb4136de052d55158e259f13 /lisp/erc/erc-dcc.el
parent17e8c342737b01da892528bc76713db6225b41a3 (diff)
downloademacs-8772d81966f0b1cec400fd638c5ab809cae91df4.tar.gz
; Some more docfixes for erc/*.el
Diffstat (limited to 'lisp/erc/erc-dcc.el')
-rw-r--r--lisp/erc/erc-dcc.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el
index 60c722843b1..147b90291ad 100644
--- a/lisp/erc/erc-dcc.el
+++ b/lisp/erc/erc-dcc.el
@@ -81,7 +81,8 @@ IRC users."
All values of the list must be uppercase strings.")
(defvar erc-dcc-list nil
- "List of DCC connections. Looks like:
+ "List of DCC connections.
+Looks like:
((:nick \"nick!user@host\" :type GET :peer proc
:parent proc :size size :file file)
(:nick \"nick!user@host\" :type CHAT :peer proc :parent proc)
@@ -163,8 +164,9 @@ All values of the list must be uppercase strings.")
;;; Misc macros and utility functions
(defun erc-dcc-member (&rest args)
- "Return the first matching entry in `erc-dcc-list' which satisfies the
-constraints given as a plist in ARGS. Returns nil on no match.
+ "Return first matching entry in `erc-dcc-list' satisfying constraints in plist ARGS.
+
+Return nil on no match.
The property :nick is treated specially, if it contains a `!' character,
it is treated as a nick!user@host string, and compared with the :nick property
@@ -205,8 +207,7 @@ compared with `erc-nick-equal-p' which is IRC case-insensitive."
result))
(defun erc-pack-int (value)
- "Convert an integer into a packed string in network byte order,
-which is big-endian."
+ "Convert integer into a packed string in network byte order, which is big-endian."
;; make sure value is not negative
(when (< value 0)
(error "ERC-DCC (erc-pack-int): packet size is negative"))