[ejabberd] Sending messages via send_message_chat

Peter Binnig peter.binnig at gmx.net
Wed Dec 4 11:08:24 MSK 2013

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

More information about the ejabberd mailing list