Example #1
0
    // Token: 0x06001944 RID: 6468 RVA: 0x000873A0 File Offset: 0x000855A0
    public void SendPrivateChatMessage(int receiverCmid, string receiverName, string message)
    {
        message = ChatMessageFilter.Cleanup(message);
        if (!string.IsNullOrEmpty(message))
        {
            Singleton <ChatManager> .Instance.AddNewPrivateMessage(receiverCmid, new InstantMessage(PlayerDataManager.Cmid, PlayerDataManager.Name, message, PlayerDataManager.AccessLevel, ChatContext.None));

            base.Operations.SendChatMessageToPlayer(receiverCmid, message);
        }
    }
 // Token: 0x06001A9C RID: 6812 RVA: 0x0008B318 File Offset: 0x00089518
 public bool SendChatMessage(string message, ChatContext context)
 {
     message = ChatMessageFilter.Cleanup(message);
     if (!string.IsNullOrEmpty(message) && !ChatMessageFilter.IsSpamming(message))
     {
         GameStateHelper.OnChatMessage(PlayerDataManager.Cmid, PlayerDataManager.Name, message, PlayerDataManager.AccessLevel, (byte)ChatManager.CurrentChatContext);
         this.Actions.ChatMessage(message, (byte)ChatManager.CurrentChatContext);
         return(true);
     }
     return(false);
 }
Example #3
0
 // Token: 0x06001942 RID: 6466 RVA: 0x00087278 File Offset: 0x00085478
 public void SendClanChatMessage(string message)
 {
     message = ChatMessageFilter.Cleanup(message);
     if (!string.IsNullOrEmpty(message))
     {
         List <int> list = new List <int>();
         foreach (CommUser commUser in Singleton <ChatManager> .Instance.ClanUsers)
         {
             if (commUser.Cmid != PlayerDataManager.Cmid)
             {
                 list.Add(commUser.Cmid);
             }
         }
         this.OnClanChatMessage(PlayerDataManager.Cmid, PlayerDataManager.Name, message);
         base.Operations.SendChatMessageToClan(list, message);
     }
 }
Example #4
0
 // Token: 0x06001943 RID: 6467 RVA: 0x00087320 File Offset: 0x00085520
 public bool SendLobbyChatMessage(string message)
 {
     message = ChatMessageFilter.Cleanup(message);
     if (string.IsNullOrEmpty(message))
     {
         return(false);
     }
     if (PlayerDataManager.AccessLevel >= MemberAccessLevel.Moderator && message[0] == '/' && this.DoModChatCmd(message))
     {
         GUI.FocusControl("@CurrentChatMessage");
         return(true);
     }
     if (ChatMessageFilter.IsSpamming(message))
     {
         return(false);
     }
     this.OnLobbyChatMessage(PlayerDataManager.Cmid, PlayerDataManager.Name, message);
     base.Operations.SendChatMessageToAll(message);
     return(true);
 }