diff options
| author | Paul Schoenfelder <paulschoenfelder@gmail.com> | 2015-06-25 16:34:06 -0500 |
|---|---|---|
| committer | Paul Schoenfelder <paulschoenfelder@gmail.com> | 2015-06-25 16:34:06 -0500 |
| commit | 658d162ffd384d4829a8eee9c102cea0136b8d5c (patch) | |
| tree | f832879d77f0703b020f40140c978098f3de193a /lib/exirc | |
| parent | Merge pull request #27 from rockerBOO/name-command (diff) | |
Ensure crlf is trimmed from the end of command args
Diffstat (limited to 'lib/exirc')
| -rw-r--r-- | lib/exirc/utils.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exirc/utils.ex b/lib/exirc/utils.ex index 69b7b4a..9fa7a91 100644 --- a/lib/exirc/utils.ex +++ b/lib/exirc/utils.ex @@ -76,6 +76,7 @@ defmodule ExIrc.Utils do args = msg.args |> Enum.reverse |> Enum.filter(fn(arg) -> arg != [] end) + |> Enum.map(&trim_crlf/1) |> Enum.map(&List.to_string/1) %{msg | :args => args} end |
