Blur v0.2.1-beta3 Blur.IRC.Message View Source

Handles incoming messages on the IRC connection.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Handle messages from IRC connection.

Start message handler.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

handle_info(
  {:received, message :: charlist(),
   sender :: %ExIRC.SenderInfo{host: term(), nick: term(), user: term()}}
  | {:received, message :: charlist(),
     sender :: %ExIRC.SenderInfo{host: term(), nick: term(), user: term()},
     channel :: charlist()}
  | {:mentioned, message :: charlist(),
     sender :: %ExIRC.SenderInfo{host: term(), nick: term(), user: term()},
     channel :: charlist()}
  | {:unrecognized, code :: charlist(),
     message :: %ExIRC.Message{
       args: term(),
       cmd: term(),
       ctcp: term(),
       host: term(),
       nick: term(),
       server: term(),
       user: term()
     }},
  state :: pid()
) :: {:noreply, pid()}

Handle messages from IRC connection.

Link to this function

parse_message(channel, user, msg)

View Source

Specs

parse_message(channel :: binary(), user :: binary(), msg :: binary()) :: :ok

Specs

start_link([client :: GenServer.server()]) :: GenServer.on_start()

Start message handler.