Proper info.

This commit is contained in:
lain 2018-03-31 21:00:23 +02:00
parent ae6e3cb981
commit 9f45e33ae8

View file

@ -50,8 +50,13 @@ def init(ref, socket, transport, _Opts = []) do
end
def info(text) do
text = String.replace(text, ~r/[\t\r\n]/, " ")
"#{text}\tfake\(NULL)\t0\r\n"
text = String.replace(text, ~r/[\t\n]/, " ")
String.split(text, "\r")
|> Enum.map(fn (text) ->
"i#{text}\tfake\(NULL)\t0\r\n"
|> IO.inspect()
end)
|> Enum.join("")
end
def link(name, selector, type \\ 1) do