Exemple #1
0
 private void SendUserMessage(ClientMessage cmessage, Transceiver connection)
 {
     Message message = new Message();
     message.type = Message.Type.UserToUser;
     message.destination_plugin_hash = cmessage.Get("destination");
     Chat content = new Chat();
     content.AddContent("message", cmessage.Get("message"));
     content.AddContent("time", cmessage.Get("time"));
     message.content = content;
     connection.Write(message);
     Logger.log("Messenger: Chat message sent.", Logger.Verbosity.moderate);
 }