diff options
-rw-r--r-- | lib/exirc/client.ex | 2 | ||||
-rw-r--r-- | test/commands_test.exs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/exirc/client.ex b/lib/exirc/client.ex index f84a1d2..7588f81 100644 --- a/lib/exirc/client.ex +++ b/lib/exirc/client.ex @@ -681,7 +681,7 @@ defmodule ExIRC.Client do ## WHO - def handle_data(%ExIRC.Message{:cmd => "352", :args => [_, channel, user, host, server, nick, mode, hop_and_realn]}, state) do + def handle_data(%ExIRC.Message{:cmd => "352", :args => [_, channel, user, host, server, nick, mode, hop_and_realn]}, state) do [hop, name] = String.split(hop_and_realn, " ", parts: 2) :binary.compile_pattern(["@", "&", "+"]) diff --git a/test/commands_test.exs b/test/commands_test.exs index 38c2e90..97837ae 100644 --- a/test/commands_test.exs +++ b/test/commands_test.exs @@ -29,7 +29,7 @@ defmodule ExIRC.CommandsTest do expected = <<"PART testchan", ?\r, ?\n>> assert expected == part!("testchan") |> IO.iodata_to_binary expected = <<"QUIT :Leaving", ?\r, ?\n>> - assert expected == quit! |> IO.iodata_to_binary + assert expected == quit!() |> IO.iodata_to_binary expected = <<"QUIT :Goodbye, cruel world.", ?\r, ?\n>> assert expected == quit!("Goodbye, cruel world.") |> IO.iodata_to_binary expected = <<"KICK #testchan testuser", ?\r, ?\n>> |