// 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); }
// 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); }