~ubuntu-branches/ubuntu/utopic/ejabberd/utopic

« back to all changes in this revision

Viewing changes to src/ejabberd_ctl.erl

  • Committer: Bazaar Package Importer
  • Author(s): Konstantin Khomoutov, Konstantin Khomoutov
  • Date: 2011-10-03 20:27:12 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20111003202712-w9071rc7vleldxwx
Tags: 2.1.9-1
[ Konstantin Khomoutov ]
* New upstream release.
* Remove obsoleted version.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
269
269
    try call_command(Args, Auth, AccessCommands) of
270
270
        {error, command_unknown} ->
271
271
            {io_lib:format("Error: command ~p not known.", [hd(Args)]), ?STATUS_ERROR};
272
 
        {error, wrong_number_parameters} ->
273
 
            {"Error: wrong number of parameters", ?STATUS_ERROR};
 
272
        {error, wrong_command_arguments} ->
 
273
            {"Error: wrong arguments", ?STATUS_ERROR};
274
274
        Res ->
275
275
            Res
276
276
    catch
637
637
    ArgsDef = [],
638
638
    C = #ejabberd_commands{
639
639
      desc = "Show help of ejabberd commands",
640
 
      longdesc = LongDesc,
 
640
      longdesc = lists:flatten(LongDesc),
641
641
      args = ArgsDef,
642
642
      result = {help, string}},
643
643
    print_usage_command("help", C, MaxC, ShCode).