How can I go about manually adding two users into each others rosters without making use of a shared roster?
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
How can I go about manually adding two users into each others rosters without making use of a shared roster?
If you install
If you install mod_admin_extra, you will be able to call new commands using ejabberdctl, for example add_rosteritem.
add_rosteritem command unknown but mod_admin_extra is present
Thanks for the reply. mod_admin_extra is already installed but I don't seem to be able to use the add_rosteritem command.
ejabberd@pl-ashley:/opt/ejabberd-2.1.0/bin$ ./ejabberdctl add_rosteritem
Error: command "add_rosteritem" not known.
Module configuration looks like this:
{modules,
[
{mod_adhoc, []},
{mod_admin_extra, []},
{mod_announce, [{access, announce}]}, % requires mod_adhoc
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_disco, []},
{mod_http_bind,[]},
{mod_last_odbc, []},
{mod_offline_odbc, []},
{mod_privacy, []},
{mod_private, []},
{mod_pubsub, [ % requires mod_caps
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}
]},
{mod_register, []},
{mod_roster_odbc, []},
{mod_shared_roster,[]},
{mod_time, []},
{mod_vcard_odbc, []},
{mod_version, []}
]}.
Am I perhaps missing a module it depends on? Is the syntax documented somewhere?
Many thanks!
(solved) mod_admin_extra physical module was missing
I discovered I was missing the physical mod_admin_extra file.
I checked it out of SVN, compiled it, copied it across and now it seems to be working.
add_rosteritem returns strange error
This is the result I get for the add_roster command:
C:\Program Files\ejabberd-2.1.3\bin>ejabberdctl.cmd add_rosteritem user1 localhost user2 localhost NickName 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.
Does this make sense to you badlop?
See quick solution
I found the bug, a quick solution for you, and reported it in a ticket.
Read this and modify yourself that text file:Windows ejabberdctl.cmd only handles up to 4 arguments
Problem Solved
Thanks badlop - that did the trick.