summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéophile Choutri <theophile@choutri.eu>2018-01-19 15:13:48 +0100
committerThéophile Choutri <theophile@choutri.eu>2018-01-19 15:13:48 +0100
commita9258d1058815fa0d8c3201a4caf651754621f8e (patch)
treea77836ef754be914aee4b32e357ffb6a2fd378b2
parentAdd WHO query (#78) (diff)
Fix a parens warning and indentationmaster
-rw-r--r--lib/exirc/client.ex2
-rw-r--r--test/commands_test.exs2
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>>