summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/exirc/utils.ex6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/exirc/utils.ex b/lib/exirc/utils.ex
index 2293972..5f01af5 100644
--- a/lib/exirc/utils.ex
+++ b/lib/exirc/utils.ex
@@ -84,17 +84,13 @@ defmodule ExIrc.Utils do
defp get_args([[?: | first_arg] | rest], msg) do
args = (for arg <- [first_arg | rest], do: ' ' ++ trim_crlf(arg)) |> List.flatten
case args do
- [_ | []] ->
+ [_] ->
get_args [], %{msg | args: [msg.args]}
[_ | full_trail] ->
get_args [], %{msg | args: [full_trail | msg.args]}
end
end
- defp get_args([arg | []], msg) do
- get_args [], %{msg | args: [arg | msg.args]}
- end
-
defp get_args([arg | rest], msg) do
get_args rest, %{msg | args: [arg | msg.args]}
end