ejabberdctl srg_user_del (mod_admin_extra) always requires 1 more arguement

Running ejabberd 2.1.8 with mod_admin_extra installed on Windows XP.

From the command prompt, I run:

ejabberdctl srg_user_del dummy mydomain.com ahciv_game_236 mydomain.com

and I get

Error: the command "srg_user_del" requires 1 more argument.

  Command Name: srg_user_del

  Arguments: user::string
             host::string
             group::string
             grouphost::string

  Returns: res::rescode

  Tags: shared_roster_group

  Description: Delete this JID user@host from the Shared Roster Group

Error: the command "srg_user_del" requires 1 more argument.

Commands to start an ejabberd node:
  start  Start an ejabberd node in server mode
  debug  Attach an interactive Erlang shell to a running ejabberd node
  live   Start an ejabberd node in live (interactive) mode

In fact, I can put gibberish at the end to add more parameters, and it always says the same thing:

C:\Program Files\ejabberd-2.1.8\bin>ejabberdctl srg_user_del dummy mydomain.com ahciv_game_236 mydomain.com asdf asdf asdf asdf

Error: the command "srg_user_del" requires 1 more argument.

  Command Name: srg_user_del

  Arguments: user::string
             host::string
             group::string
             grouphost::string

  Returns: res::rescode

  Tags: shared_roster_group

  Description: Delete this JID user@host from the Shared Roster Group

Error: the command "srg_user_del" requires 1 more argument.

Commands to start an ejabberd node:
  start  Start an ejabberd node in server mode
  debug  Attach an interactive Erlang shell to a running ejabberd node
  live   Start an ejabberd node in live (interactive) mode

Edit: also a problem for add_rosteritem:

C:\Program Files\ejabberd-2.1.8\bin>ejabberdctl add_rosteritem ngb mydomain.com dummy mydomain.com dummy Friends both

Error: the command "add_rosteritem" requires 4 more argument.

  Command Name: add_rosteritem

  Arguments: localuser::string
             localserver::string
             user::string
             server::string
             nick::string
             group::string
             subs::string

  Returns: res::rescode

  Tags: roster

  Description: Add an item to a user's roster

Error: the command "add_rosteritem" requires 4 more argument.

Commands to start an ejabberd node:
  start  Start an ejabberd node in server mode
  debug  Attach an interactive Erlang shell to a running ejabberd node
  live   Start an ejabberd node in live (interactive) mode

C:\Program Files\ejabberd-2.1.8\bin>

After discovering the issue

After discovering the issue with add_rosteritem, I did some more digging, and seems like you already know about this:
https://support.process-one.net/browse/EJAB-1216

Just modify the bin/ejabberdctl.cmd file as described fixes the problem!

Syndicate content