]> granicus.if.org Git - ejabberd/commitdiff
Change name of result key for offline count to value
authorMickael Remond <mremond@process-one.net>
Sat, 30 Jul 2016 18:12:04 +0000 (20:12 +0200)
committerMickael Remond <mremond@process-one.net>
Sat, 30 Jul 2016 18:12:04 +0000 (20:12 +0200)
This is more user friendly and should be more consistent with other commands.

src/mod_admin_extra.erl

index 2ad1cc28e364e33c8a696596f1f61641654f5669..c23fd7818a85e45563173d02e190fd59216d4126 100644 (file)
@@ -535,7 +535,7 @@ get_commands_spec() ->
                         policy = user,
                        module = mod_offline, function = count_offline_messages,
                        args = [],
-                       result = {res, integer}},
+                       result = {value, integer}},
      #ejabberd_commands{name = send_message, tags = [stanza],
                        desc = "Send a message to a local or remote bare of full JID",
                        module = ?MODULE, function = send_message,