internal void CheckChannel(string server, string scChannel, PrivMsgEventArgs nPME) { Dictionary <string, ChanFav> favs; favs = dc.GetFavoriteList(server); ChanFav cf; if (favs.TryGetValue(scChannel, out cf)) { dc.UpdateChanFavLast(); if (cf.Last == null) { return; } DateTime activity = cf.Last; int Threshold = cf.NotifyMinute; if (cf.NotifyMinute == 0) { return; } activity = activity.AddMinutes(Threshold); if (activity > DateTime.Now) { //if added activity time > currenttime then no need to notify, get out. return; } string ph; if (cf.Phonetic.Length == 0) { ph = cf.channel; } else { ph = cf.Phonetic; } if (ph.ToLower() == "notset") { return; } speaker.Speak("channel " + ph + " has activity from " + nPME.User.Nick); } }