]> granicus.if.org Git - ejabberd/commitdiff
Fix argument name consistency
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 31 Jan 2019 17:05:39 +0000 (18:05 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 31 Jan 2019 17:05:39 +0000 (18:05 +0100)
src/mod_muc_admin.erl

index 6a125d848d16cf88710df74e2c8de95610241ee7..616d54d2876fe3fd606f98d48a0d7d0a21586583 100644 (file)
@@ -116,14 +116,14 @@ get_commands_spec() ->
                       module = ?MODULE, function = muc_register_nick,
                       args_desc = ["Nick", "User JID", "Server Host"],
                       args_example = [<<"Tim">>, <<"tim@example.org">>, <<"example.org">>],
-                      args = [{nick, binary}, {jid, binary}, {serverhost, binary}],
+                      args = [{nick, binary}, {jid, binary}, {host, binary}],
                       result = {res, rescode}},
      #ejabberd_commands{name = muc_unregister_nick, tags = [muc],
                       desc = "Unregister the nick registered by that account in the MUC service",
                       module = ?MODULE, function = muc_unregister_nick,
                       args_desc = ["User JID", "MUC service"],
                       args_example = [<<"tim@example.org">>, <<"example.org">>],
-                      args = [{jid, binary}, {serverhost, binary}],
+                      args = [{jid, binary}, {host, binary}],
                       result = {res, rescode}},
 
      #ejabberd_commands{name = create_room, tags = [muc_room],