summaryrefslogtreecommitdiff
path: root/lib/exirc
diff options
context:
space:
mode:
authorPaul Schoenfelder <paulschoenfelder@gmail.com>2015-06-25 16:34:06 -0500
committerPaul Schoenfelder <paulschoenfelder@gmail.com>2015-06-25 16:34:06 -0500
commit658d162ffd384d4829a8eee9c102cea0136b8d5c (patch)
treef832879d77f0703b020f40140c978098f3de193a /lib/exirc
parentMerge 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.ex1
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