Function: org-irc-parse-link
org-irc-parse-link is a byte-compiled function defined in
ol-irc.el.gz.
Signature
(org-irc-parse-link LINK)
Documentation
Parse an IRC LINK and return the attributes found.
Parse a LINK that looks like server:port/chan/user (port, chan and user being optional) and return any of the port, channel or user attributes that are found.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol-irc.el.gz
(defun org-irc-parse-link (link)
"Parse an IRC LINK and return the attributes found.
Parse a LINK that looks like server:port/chan/user (port, chan
and user being optional) and return any of the port, channel or user
attributes that are found."
(let* ((parts (split-string link "/" t))
(len (length parts)))
(when (or (< len 1) (> len 3))
(error "Failed to parse link needed 1-3 parts, got %d" len))
(setcar parts (split-string (car parts) ":" t))
parts))