summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2023-03-06 19:08:07 +0100
committerJordan Bracco <href@random.sh>2023-03-06 19:08:07 +0100
commitfc884b405ab99fa482eaa4b3f5b8b337bf99d1a2 (patch)
tree43d6827d42b499da45e9d8599c67fdd338f56123
parenthate this (diff)
puppet: clean nickmaster
-rw-r--r--lib/irc/puppet_connection.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irc/puppet_connection.ex b/lib/irc/puppet_connection.ex
index 51b4c8a..1c093ca 100644
--- a/lib/irc/puppet_connection.ex
+++ b/lib/irc/puppet_connection.ex
@@ -227,6 +227,8 @@ defmodule Nola.Irc.PuppetConnection do
[nick] -> nick
end
clean_nick
+ |> :unicode.characters_to_nfd_binary()
+ |> String.replace(~r/[^a-z0-9]/, "")
end
if Mix.env == :dev do