IRC messages -> Clojure maps.
IRC messages -> Clojure maps.
(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 ':'.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close