Skip to content

Commit

Permalink
Use gproc to register client pids.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Jul 4, 2012
1 parent 3cd9a61 commit c1a072d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@

{deps, [
{lager, ".*", {git, "git://github.com/basho/lager.git", "master"}},
{gproc, ".*", {git, "git://github.com/esl/gproc.git", "master"}},
{ranch, ".*", {git, "git://github.com/extend/ranch.git", "master"}}
]}.

%% {gproc, ".*", {git, "git://github.com/esl/gproc.git", "master"}},


%% {lhttpc, ".*", {git, "git://github.com/esl/lhttpc.git", "master"}},
%% {meck, ".*", {git, "git://github.com/klaar/meck.git", "file-bif-passthrough"}},
Expand Down
1 change: 1 addition & 0 deletions src/pony_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ handle_message(Prefix, Command, Args, #state { nickname = CurNick } = State) ->
{<<>>, nick, [NickName]} ->
case pony_nick_srv:register(NickName) of
ok ->
gproc:add_local_name({nick, NickName}),
State#state { nickname = NickName };
nick_in_use ->
send_numeric('ERR_ERRONEUSNICKNAME', [pony:me(), CurNick]),
Expand Down
1 change: 1 addition & 0 deletions src/pony_core.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
syntax_tools,
sasl,
lager,
gproc,
ranch
]},
{mod, { pony_core_app, []}},
Expand Down

0 comments on commit c1a072d

Please sign in to comment.