[ejabberd] Sending messages via send_message_chat

孙明欣 mingxin.sun at dewmobile.net
Wed Dec 4 16:06:31 MSK 2013

You can try xmlrpc module to send message.


From: Peter Binnig
Date: 2013-12-04 15:08
To: ejabberd
Subject: [ejabberd] Sending messages via send_message_chat
I tried to create a corn-job to set the motd every day on a new output
of "fortune" but I could not figure out how to do that.
Every thing I tried resulted in "Error: the command "send_message_chat"
requires 15 less argument." or
Problem 'error {case_clause,{'EXIT',{{badmatch,{error,{fread,character}}},


{rpc,'-handle_call_call/6-fun-0-',5}]}}}' occurred executing the command.
Stacktrace: [{ejabberd_ctl,call_command,3},

The second error occurs with "&(fortune) as message argument, but not
every time I think it has something to do with multiple lines in the
message, because one line messages get set properly.
Can anybody give me any advice?

Peter Binnig
ejabberd mailing list
ejabberd at jabber.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20131204/b91ce326/attachment.html>

More information about the ejabberd mailing list