Search code examples
configurationejabberd

Ejabberd virtual host announcement nickname


When I send announcement to users in ejabberd (using for example "Send announcement to all users on all hosts"), recipients see it as a message from virtual host with "ejabberd" nickname, which is unclear to users.

I wonder how to change this "ejabberd" nickname to something more convenient?

Very weird that there is absolutely no information about this in documentation and even no questions about this from somebody else. How it's possible that nobody cares about this? Maybe there is something wrong with my ejabberd configuration and virtual host shouldn't have "ejabberd" nickname by default?


Solution

  • Try adding this option:

      mod_disco:
        name: "ejabberd server"
    

    Regarding the server vcard, try a patch like this:

    --- a/src/mod_vcard.erl
    +++ b/src/mod_vcard.erl
    @@ -197,7 +197,7 @@ process_local_iq(#iq{type = set, lang = Lang} = IQ) ->
         xmpp:make_error(IQ, xmpp:err_not_allowed(Txt, Lang));
     process_local_iq(#iq{type = get, lang = Lang} = IQ) ->
         xmpp:make_iq_result(
    -      IQ, #vcard_temp{fn = <<"ejabberd">>,
    +      IQ, #vcard_temp{fn = <<"ejabberd server nickname">>,
                          url = ejabberd_config:get_uri(),
                          desc = misc:get_descr(Lang, ?T("Erlang Jabber Server")),
                          bday = <<"2002-11-16">>}).