diff options
author | href <href@random.sh> | 2020-07-07 21:39:10 +0200 |
---|---|---|
committer | href <href@random.sh> | 2020-07-07 21:39:51 +0200 |
commit | d6ee134a5957e299c3ad59011df320b3c41e6e61 (patch) | |
tree | 29567e6635466f8a3415a935b3cc8a777019f5bc /lib/lsg_web.ex | |
parent | bleh (diff) |
pouet
Diffstat (limited to 'lib/lsg_web.ex')
-rw-r--r-- | lib/lsg_web.ex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/lsg_web.ex b/lib/lsg_web.ex index e07d648..f5dee6f 100644 --- a/lib/lsg_web.ex +++ b/lib/lsg_web.ex @@ -17,6 +17,22 @@ defmodule LSGWeb do and import those modules here. """ + def format_chan("#") do + "♯" + end + + def format_chan("#"<>chan) do + chan + end + + def reformat_chan("♯") do + "" + end + + def reformat_chan(chan) do + "#"<>chan + end + def controller do quote do use Phoenix.Controller, namespace: LSGWeb |