public override void OnChatMessage(ref ChatMsg msg) { bool flag = false; if (this.m_memberData.ContainsKey(msg.Author) && (this.m_memberData[msg.Author].IsAdmin | flag)) { MyClientDebugCommands.Process(msg.Text, msg.Author); } this.RaiseChatMessageReceived(msg.Author, msg.Text, (ChatChannel)msg.Channel, msg.TargetId, string.IsNullOrEmpty(msg.CustomAuthorName) ? string.Empty : msg.CustomAuthorName); }
protected override void OnChatMessage(ref ChatMsg msg) { bool debugCommands = !MyFinalBuildConstants.IS_OFFICIAL && MyFinalBuildConstants.IS_DEBUG; if (m_memberData.ContainsKey(msg.Author)) { if (m_memberData[msg.Author].IsAdmin || debugCommands) { MyClientDebugCommands.Process(msg.Text, msg.Author); } } RaiseChatMessageReceived(msg.Author, msg.Text, ChatEntryTypeEnum.ChatMsg); }