Skip to content

Commit

Permalink
Added some more codes which are useful to have when matching on serve…
Browse files Browse the repository at this point in the history
…r response
  • Loading branch information
mazenharake committed Apr 18, 2010
1 parent da31748 commit 0726927
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ Edit the src/eirc_example_bot.erl according to what network/user you want to use
then compile and run from the root dir like this:

$> erl -pa ebin
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.7.4 (abort with ^G)
1> eirc_example_bot:start_link().
Expand Down
15 changes: 12 additions & 3 deletions include/eirc.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,31 @@
-define(RPL_ISUPPORT, "005"). %% Defacto standard for server support
-define(RPL_BOUNCE, "010"). %% Defacto replacement of "005" in RFC2812

-define(RPL_STATSDLINE, "250").
-define(RPL_LUSERCLIENT, "251").
-define(RPL_LUSEROP, "252").
-define(RPL_LUSERUNKNOWN, "253").
-define(RPL_LUSERCHANNELS, "254").
-define(RPL_LUSERME, "255").
-define(RPL_LOCALUSERS, "265").
-define(RPL_GLOBALUSERS, "266").

-define(RPL_TOPIC, "332").
-define(RPL_NAMREPLY, "353").
-define(RPL_ENDOFNAMES, "366").
-define(RPL_MOTD, "372").
-define(RPL_MOTDSTART, "375").
-define(RPL_ENDOFMOTD, "376").

-define(ERR_NONICKNAMEGIVEN, "431").
-define(ERR_ERRONEUSNICKNAME, "432").
-define(ERR_NICKNAMEINUSE, "433").
-define(ERR_NICKCOLLISION, "436").
-define(ERR_UNAVAILRESOURCE, "437").

-define(ERR_NEEDMOREPARAMS, "461").
-define(ERR_ALREADYREGISTRED, "462").

-define(ERR_RESTRICTED, "484").


%% Code groups
-define(LOGON_ERRORS, [?ERR_NONICKNAMEGIVEN, ?ERR_ERRONEUSNICKNAME,
?ERR_NICKNAMEINUSE, ?ERR_NICKCOLLISION,
Expand Down

0 comments on commit 0726927

Please sign in to comment.