private bool ChatCommandCommand(BmpChatListener.Command cmd) { if (IsCommandPermitted(cmd)) { if (!string.IsNullOrEmpty(cmd.param)) { if (Properties.Settings.Default.PlayLyrics) { FFXIV.SendChatString(cmd.param); } } } return(true); }
private void OnMidiLyric(Object o, string lyric) { string chan = Properties.Settings.Default.ListenChannel; if (chatListener.GetChatCommand(lyric, chan) is Func <bool> cmdChatFunc) { if (cmdChatFunc()) { return; } } if (lyricListener.GetChatCommand(lyric, chan) is Func <bool> cmdLyricFunc) { if (cmdLyricFunc()) { return; } } if (Properties.Settings.Default.PlayLyrics) { FFXIV.SendChatString(lyric); } }