private bool ChatCommandConduct(BmpChatListener.Command cmd) { if (!cmd.IsCommandListenChannel()) { return(false); } if (Conductor.IsConductorName(cmd.sender)) { if (cmd.param == "off") { this.ConfirmSetConductor(string.Empty); } else { // Same conductor, idk what i wanna do with this } } else { if (Properties.Settings.Default.ForceListen) { this.ConfirmSetConductor(cmd.sender); } else { this.BringFront(); confirmConductor.ConductorName = cmd.sender; confirmConductor.ShowDialog(this); } } return(true); }
private bool IsCommandPermitted(BmpChatListener.Command cmd) { if (Conductor.IsConductorName(cmd.sender)) { if (cmd.sender == FFXIV.memory.currentPlayer.CurrentPlayer.Name) { // Disable making the same f*****g command to yourself as conductor return(false); } return(cmd.IsCommandListenChannel()); } else { if (Properties.Settings.Default.ForceListen) { if (cmd.IsCommandListenChannel()) { return(true); } } } return(false); }