anchor.diff:  	Packet = build_packet(message_flag, [MsgId, Status, Username, Timestamp]),
   	send_packet_all_resources(?SendFrom, To, Packet).
   
  +send_expire(To, Name, Jid, Status, Timestamp) ->
  +	Packet = build_packet(message_expire, [Name, Jid, Status, Timestamp]),
  +	send_packet_all_resources(?SendFrom, To, Packet).
  +
   build_packet(message_like, [MsgId, Status, Username, Timestamp, Jid]) ->
   	{xmlelement, "presence",
   		[{"type", "msg_like"}],
  
positive.code: -behavior(gen_mod).
  
  -export([start/2, stop/1]).
  -export([send_like/6, send_flag/5]).
  
  -include("ejabberd.hrl").
  -include("jlib.hrl").
  
negative.code: 
  commands() ->
      [
  	#ejabberd_commands{name = send_like, tags = [custom_msg],
  		desc = "Send notifikations about liked message",
  		module = ?MODULE, function = send_like,
  		args = [{to, string}, {msg_id, string}, {status, string}, {username, string}, {timestamp, string}, {jid, string}],
  		result = {res, rescode}},
  	#ejabberd_commands{name = send_flag, tags = [custom_msg],
  		desc = "Send notifikations about flagged message",
  		module = ?MODULE, function = send_flag,
  		args = [{to, string}, {msg_id, string}, {status, string}, {username, string}, {timestamp, string}],
  		result = {res, rescode}},
      #ejabberd_commands{name = send_expire, tags = [custom_msg],
  		desc = "Send notifikations about expired room",
  		module = ?MODULE, function = send_expire,
  		args = [{to, string}, {name, string}, {jid, string}, {status, string}, {timestamp, string}],
  		result = {res, rescode}}
      ].
  
  