private static void MeebyIrc_OnDeop(object sender, DeopEventArgs e) { if (!irc.supermod.Contains(e.Whom)) //Ignore if the user is supermod irc.moderators.Remove(e.Whom); Console.WriteLine("! -OP: " + e.Whom); }
private static void OnDeop(object sender, DeopEventArgs e) { User u = null; lock (Users.All) { u = Users.All.Find(x => x.Name.Equals(e.Whom.ToLower())); } if (u != null) u.IsAdmin = false; else CreateUser(e.Whom, false); }
void OnDeOp(object sender, DeopEventArgs e) { if(OpList == null) OpList = new Dictionary<string, string>(); if(OpList.ContainsKey(e.Whom)) { OpList.Remove(e.Whom); } }
static void client_OnDeop(object sender, DeopEventArgs e) { User user = TouchUser(e.Whom, false, false); user.Meta.JTVModerator = false; user.Meta.DeopTime = DateTime.UtcNow; }
private void _OnDeop(object sender, DeopEventArgs e) { GroupChatModel cchat = (GroupChatModel)GetChat(e.Channel, ChatType.Group); IrcGroupPersonModel user = (IrcGroupPersonModel)cchat.GetPerson(e.Whom); if (user != null) { user.IsOp = false; Session.UpdatePersonInGroupChat(cchat, user, user); #if LOG4NET } else { _Logger.Error("_OnDeop(): cchat.GetPerson(e.Whom) returned null! cchat.Name: "+cchat.Name+" e.Whom: "+e.Whom); #endif } }
void mClient_OnDeop(object sender, DeopEventArgs e) { AddText(string.Format("*** {0} has deoped {1}", e.Who, e.Whom)); UpdateNames(); }
private void OnDeOp(object sender, DeopEventArgs e) { //Someone is not an operator anymore if (OpList == null) OpList = new HashSet<string>(); if (OpList.Contains(e.Whom)) { //Remove him if he's there. OpList.Remove(e.Whom); } }