public void Hecheng(string wenzi, bool isChat = false) { if (wenzi == "") { return; } if (ConfigData.DanMu) { if (isChat) { if (wenzi.Length > ConfigData.maxSize) { return; } if (ConfigData.BlackList != "") { foreach (var Black in BlackList) { if (Black.Contains("Name:") || Black.Contains("Name:")) { continue; } var black = Black.Trim(); try { if (Regex.IsMatch(wenzi, black)) { return; } } catch (Exception err) { logging(err.ToString(), "debug"); } } } } lock (YuYin.DanmuHecheng) YuYin.DanmuHecheng.Enqueue(wenzi); } }