simpleirc-0.1.0: Simple IRC Library

Portabilityportable
Stabilityprovisional
Maintainermorfeusz8@gmail.com

Network.SimpleIRC.Messages

Description

Messages module

Synopsis

Documentation

data Command Source

Constructors

Command 
MPrivmsg ByteString ByteString

PRIVMSG #chan :msg

MJoin ByteString (Maybe ByteString)

JOIN #chan key

MPart ByteString ByteString

PART #chan :msg

MMode ByteString ByteString (Maybe ByteString)

MODE #chan +o user

MTopic ByteString (Maybe ByteString)

TOPIC #chan :topic

MInvite ByteString ByteString

INVITE user #chan

MKick ByteString ByteString ByteString

KICK #chan user :msg

MQuit ByteString

QUIT :msg

MNick ByteString

NICK newnick

MNotice ByteString ByteString

NOTICE usr/#chan :msg

MAction ByteString ByteString

PRIVMSG usr/#chan :\x01ACTION msg\x01

parse :: ByteString -> IrcMessageSource

Parse a raw IRC message