[erlang-questions] Strange error with client/server IRC code

Berlin Brown berlin.brown@REDACTED
Thu Feb 28 03:08:25 CET 2008


On Wed, Feb 27, 2008 at 8:55 PM, Matthew Dempsky <matthew@REDACTED> wrote:
> On 2/27/08, Berlin Brown <berlin.brown@REDACTED> wrote:
>  >  join(Irclib, Channel) when list(Channel) ->
>  >         io:format("trace: join@~p~n", [Channel]),
>  >         %% TODO: remove test code
>  >     send_client_command(Irclib, "JOIN").
>
>  This looks wrong.  Why aren't you doing anything actually interesting
>  with Channel?
>

join(Irclib, {Channel, Pass}) ->
	io:format("trace: join(a)@~p~n", [Channel]),
    send_client_command(Irclib, "JOIN", [Channel, Pass]);
join(Irclib, Channel) when list(Channel) ->
	io:format("trace: join@~p~n", [Channel]),
	%% TODO: remove test code
    send_client_command(Irclib, "JOIN").

----
Sorry, I those are join.  I was using the basic join to see if it
would just work.

-- 
Berlin Brown
http://botspiritcompany.com/botlist/spring/help/about.html



More information about the erlang-questions mailing list