Liking cljdoc? Tell your friends :D

irclj.parser

IRC messages -> Clojure maps.

IRC messages -> Clojure maps.
raw docstring

extract-prefixclj

(extract-prefix line-s)

Takes a line sequence and if the first element is a string beginning with ':', return it minus the ':'.

Takes a line sequence and if the first element is a string
beginning with ':', return it minus the ':'.
raw docstring

parseclj

(parse line)

Takes a raw message from IRC and turns it into a Clojure map. This map will contain :command, :params, :raw keys. If the message begins with a prefix, it will be parsed and :nick, :user, and :host keys will also be in the resulting map.

Takes a raw message from IRC and turns it into a Clojure map.
This map will contain :command, :params, :raw keys. If the message
begins with a prefix, it will be parsed and :nick, :user, and :host
keys will also be in the resulting map.
raw docstring

parse-paramsclj

(parse-params line-s prefix)

Parse the parameters of a message. prefix is a true or false value.

Parse the parameters of a message. prefix is a true or false
value.
raw docstring

parse-prefixclj

(parse-prefix line-s)

If a prefix is present in the message, parse it and return a map of :nick, :user, and :host.

If a prefix is present in the message, parse it and return
a map of :nick, :user, and :host.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close