Inheritance: IrcEventArgs
Exemplo n.º 1
0
 private static void MeebyIrc_OnOp(object sender, OpEventArgs e)
 {
     if(!irc.moderators.Contains(e.Whom))
         irc.moderators.Add(e.Whom);
     Console.WriteLine("! +OP: " + e.Whom);
 }
Exemplo n.º 2
0
 private static void OnOp(object sender, OpEventArgs e) {
     User u = null;
     lock (Users.All)
     {
         u = Users.All.Find(x => x.Name.Equals(e.Whom.ToLower()));
     }
     if (u != null) u.IsAdmin = true;
     else CreateUser(e.Whom, true);
 }
Exemplo n.º 3
0
		void OnOp(object sender, OpEventArgs e)
		{
			if(OpList == null) OpList = new Dictionary<string, string>();
			if(!OpList.ContainsKey(e.Whom))
			{
				OpList.Add(e.Whom, "");
			}
		}
Exemplo n.º 4
0
 static void client_OnOp(object sender, OpEventArgs e)
 {
     User user = TouchUser(e.Whom, false, false);
     user.Meta.JTVModerator = true;
     user.Meta.DeopTime = DateTime.UtcNow;
 }
Exemplo n.º 5
0
 private void _OnOp(object sender, OpEventArgs e)
 {
     GroupChatModel cchat = (GroupChatModel)GetChat(e.Channel, ChatType.Group);
     IrcGroupPersonModel user = (IrcGroupPersonModel)cchat.GetPerson(e.Whom);
     if (user != null) {
         user.IsOp = true;
         Session.UpdatePersonInGroupChat(cchat, user, user);
     #if LOG4NET
     } else {
         _Logger.Error("_OnOp(): cchat.GetPerson(e.Whom) returned null! cchat.Name: "+cchat.Name+" e.Whom: "+e.Whom);
     #endif
     }
 }
Exemplo n.º 6
0
 void mClient_OnOp(object sender, OpEventArgs e)
 {
     AddText(string.Format("*** {0} has oped {1}", e.Who, e.Whom));
     UpdateNames();
 }
Exemplo n.º 7
0
 private void OnOp(object sender, OpEventArgs e)
 {
     //Someone became an operator
     if (OpList == null) OpList = new HashSet<string>();
     if (!OpList.Contains(e.Whom))
     {
         //Add it if he's not already there.
         OpList.Add(e.Whom);
     }
 }