irc-core-1.1.1: An IRC client library and text client

Safe HaskellSafe
LanguageHaskell2010

Irc.Core

Description

This module provides a bridge between the low-level text protocol that IRC uses and the high-level events in the Irc.Model module.

Synopsis

Documentation

data MsgFromServer Source

MsgFromServer provides a typed view of the various IRC protocol messages. There are more messages defined for IRC (and many of those overlap) than are in common use. Please report a bug if a common message is missing from this type.

Constructors

RplWelcome ByteString

001 "Welcome to the Internet Relay Network <nick>!<user>@<host>"

RplYourHost ByteString

002 "Your host is <servername>, running version <ver>"

RplCreated ByteString

003 "This server was created <date>"

RplMyInfo ByteString ByteString [ByteString]

004 servername version *(modes)

RplISupport [(ByteString, ByteString)]

005 *(KEY=VALUE)

RplSnoMask ByteString

008 snomask

RplYourId ByteString

042 unique-id

RplStatsLinkInfo [ByteString]

211 arguments

RplStatsCommands [ByteString]

212 arguments

RplStatsCLine [ByteString]

213 arguments

RplStatsNLine [ByteString]

214 arguments

RplStatsILine [ByteString]

215 arguments

RplStatsKLine [ByteString]

216 arguments

RplStatsQLine [ByteString]

217 arguments

RplStatsYLine [ByteString]

218 arguments

RplEndOfStats Char

219 mode

RplStatsPLine [ByteString]

220 arguments

RplUmodeIs ByteString [ByteString]

221 modes *(params)

RplStatsDLine [ByteString]

225

RplStatsVLine [ByteString]

240

RplStatsLLine [ByteString]

241

RplStatsUptime ByteString

242

RplStatsOLine [ByteString]

243

RplStatsHLine [ByteString]

244

RplStatsSLine [ByteString]

245

RplStatsPing [ByteString]

246

RplStatsXLine [ByteString]

247

RplStatsULine [ByteString]

248

RplStatsDebug [ByteString]

249

RplStatsConn ByteString

250 connection

RplLuserClient ByteString

251 "There are <integer> users and <integer> services on <integer> servers"

RplLuserOp ByteString

252 number-of-ops

RplLuserUnknown ByteString

253 number-of-unknown

RplLuserChannels ByteString

254 number-of-channels

RplLuserMe ByteString

255 "I have <integer> clients and <integer> servers"

RplLuserAdminMe ByteString

256 server

RplLuserAdminLoc1 ByteString

257 admin-info-1

RplLuserAdminLoc2 ByteString

258 admin-info-2

RplLuserAdminEmail ByteString

259 admin-email

RplLoadTooHigh ByteString

263 command

RplLocalUsers [ByteString]

265 [local] [max] txt

RplGlobalUsers [ByteString]

266 [global] [max] txt

RplPrivs ByteString

270 privstring

RplWhoisCertFp Identifier ByteString

276 nick txt

RplAcceptList Identifier

281

RplEndOfAccept

282

RplAway Identifier ByteString

301 nick away_message

RplUserHost [ByteString]

302 *(user hosts)

RplIsOn [Identifier]

303 *(nick)

RplSyntax ByteString

(inspircd) 304 text

RplUnAway

305

RplNowAway

306

RplWhoisUser Identifier ByteString ByteString ByteString

311 nick user host realname

RplWhoisServer Identifier ByteString ByteString

312 nick server serverinfo

RplWhoisOperator Identifier ByteString

313 nick "is an IRC operator"

RplWhoWasUser Identifier ByteString ByteString ByteString

314 nick user host realname

RplEndOfWho Identifier

315 channel

RplWhoisIdle Identifier Integer (Maybe UTCTime)

317 nick idle signon

RplEndOfWhois Identifier

318 nick

RplWhoisChannels Identifier ByteString

319 nick channels

RplListStart

321

RplList Identifier Integer ByteString

322 channel usercount topic

RplListEnd

323

RplChannelModeIs Identifier ByteString [ByteString]

324 channel modes *(params)

RplNoTopicSet Identifier

331 channel

RplTopic Identifier ByteString

332 channel topic

RplChannelUrl Identifier ByteString

328 channel url

RplCreationTime Identifier UTCTime

329 channel timestamp

RplWhoisAccount Identifier ByteString

330 nick account

RplTopicWhoTime Identifier ByteString UTCTime

333 channel nickname timestamp

RplInviting Identifier Identifier

341 nick channel

RplInviteList Identifier ByteString ByteString UTCTime

346 channel mask who timestamp

RplEndOfInviteList Identifier

347 channel

RplExceptionList Identifier ByteString ByteString UTCTime

348 channel mask who timestamp

RplEndOfExceptionList Identifier

349 channel

RplVersion [ByteString]

351 version server comments

RplWhoReply Identifier ByteString ByteString ByteString Identifier ByteString ByteString

352 channel user host server nick flags txt

RplNameReply ChannelType Identifier [ByteString]

353 channeltype channel names

RplLinks ByteString ByteString ByteString

364 mask server info

RplEndOfLinks ByteString

365 mask

RplEndOfNames Identifier

366 channel

RplBanList Identifier ByteString ByteString UTCTime

367 channel banned banner timestamp

RplEndOfBanList Identifier

368 channel

RplEndOfWhoWas Identifier

369 nick

RplMotd ByteString

372 line-of-motd

RplMotdStart

375

RplEndOfMotd

376

RplTime ByteString ByteString

391 server "<string showing server's local time>"

RplInfo ByteString

371 info

RplEndOfInfo

374

RplWhoisHost Identifier ByteString

378 nick host

RplWhoisModes Identifier ByteString [ByteString]

379 nick modes *(args)

RplYoureOper ByteString

381 text

RplHostHidden ByteString

396 hostname

Err Identifier IrcError 
RplWhoisSecure Identifier

671 nick

RplHelpStart ByteString ByteString

704 topic text

RplHelp ByteString ByteString

705 topic text

RplEndOfHelp ByteString

706 topic text

RplKnock Identifier UserInfo

710 channel

RplKnockDelivered Identifier

711 channel

RplTargNotify Identifier

717 nick

RplUmodeGMsg Identifier ByteString

718 nick mask

RplQuietList Identifier Char ByteString ByteString UTCTime

728 channel mode mask who timestamp

RplEndOfQuietList Identifier Char

729 channel mode

RplLoggedIn ByteString

900 account

RplLoggedOut

901

RplNickLocked

902

RplSaslSuccess

903

RplSaslFail

904

RplSaslTooLong

905

RplSaslAborted

906

RplSaslAlready

907

RplSaslMechs ByteString

908 comma-sep-mechs

Away UserInfo (Maybe ByteString) 
Ping ByteString 
Pong ByteString (Maybe ByteString) 
Notice UserInfo Identifier ByteString 
Topic UserInfo Identifier ByteString 
PrivMsg UserInfo Identifier ByteString 
ExtJoin UserInfo Identifier (Maybe ByteString) ByteString 
Join UserInfo Identifier 
Nick UserInfo Identifier 
Mode UserInfo Identifier [ByteString] 
Quit UserInfo ByteString 
Cap ByteString ByteString 
Kick UserInfo Identifier Identifier ByteString 
Part UserInfo Identifier ByteString 
Invite UserInfo Identifier 
Error ByteString 
Authenticate ByteString 
Account UserInfo (Maybe ByteString) 

data IrcError Source