]> granicus.if.org Git - ejabberd/commitdiff
Let ejabberdctl accept binary string arguments
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 28 Apr 2014 23:11:08 +0000 (01:11 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 28 Apr 2014 23:11:08 +0000 (01:11 +0200)
Don't print the following message if an ejabberd command expects binary
string arguments: "This command cannot be executed using ejabberdctl.
Try ejabberd_xmlrpc."

src/ejabberd_ctl.erl

index d8d0676404eac2e51b7bc12ad3f997ec2a42fb19..eda1c4970536af5961448c07ff990f4bbd670814 100644 (file)
@@ -418,6 +418,7 @@ is_supported_args(Args) ->
       fun({_Name, Format}) ->
              (Format == integer)
                  or (Format == string)
+                     or (Format == binary)
       end,
       Args).