summaryrefslogtreecommitdiff
path: root/src/ejabberd.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-10-31 11:25:01 +0100
committerChristophe Romain <christophe.romain@process-one.net>2017-10-31 11:25:01 +0100
commit8cb71255ebe2803ac428439a4881aac8ba38d42f (patch)
tree93bdf557ebb738563e370e140054b857316fa15e /src/ejabberd.erl
parentAllow auth and pubsub plugin to use Elixir module (diff)
Do not bind unused tail from 675cc3e
Diffstat (limited to 'src/ejabberd.erl')
-rw-r--r--src/ejabberd.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd.erl b/src/ejabberd.erl
index 1d2d7790..9022c5d2 100644
--- a/src/ejabberd.erl
+++ b/src/ejabberd.erl
@@ -149,7 +149,7 @@ get_module_file(App, Mod) ->
filename:join([Dir, BaseName ++ ".beam"])
end.
-module_name([Dir, _, <<H,T/binary>> | _] = Mod) when H >= 65, H =< 90 ->
+module_name([Dir, _, <<H,_/binary>> | _] = Mod) when H >= 65, H =< 90 ->
Module = str:join([elixir_name(M) || M<-tl(Mod)], <<>>),
Prefix = case elixir_name(Dir) of
<<"Ejabberd">> -> <<"Elixir.Ejabberd.">>;