상속: IrcEventArgs
예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
파일: frmMain.cs 프로젝트: alienity/LOIC
		void OnDeOp(object sender, DeopEventArgs e)
		{
			if(OpList == null) OpList = new Dictionary<string, string>();
			if(OpList.ContainsKey(e.Whom))
			{
				OpList.Remove(e.Whom);
			}
		}
예제 #4
0
파일: Irc.cs 프로젝트: vsrz/desbot_vsrz
 static void client_OnDeop(object sender, DeopEventArgs e)
 {
     User user = TouchUser(e.Whom, false, false);
     user.Meta.JTVModerator = false;
     user.Meta.DeopTime = DateTime.UtcNow;
 }
예제 #5
0
 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
     }
 }
예제 #6
0
 void mClient_OnDeop(object sender, DeopEventArgs e)
 {
     AddText(string.Format("*** {0} has deoped {1}", e.Who, e.Whom));
     UpdateNames();
 }
예제 #7
0
 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);
     }
 }