aboutsummaryrefslogtreecommitdiff
path: root/lib/octochat/servers/echo.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/octochat/servers/echo.ex')
-rw-r--r--lib/octochat/servers/echo.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/octochat/servers/echo.ex b/lib/octochat/servers/echo.ex
index ff25869..2945c47 100644
--- a/lib/octochat/servers/echo.ex
+++ b/lib/octochat/servers/echo.ex
@@ -18,6 +18,7 @@ defmodule Octochat.Echo do
msg
|> String.trim()
|> String.reverse()
+ |> (fn (line) -> line <> "\n" end).()
|> write_line!(socket)
{:noreply, state}
end