예제 #1
0
파일: Program.cs 프로젝트: t0phux/JeBot
 void JeBotMain_UserPartedChannel(object sender, UserPartEventArgs e)
 {
     // Remove the user from the verified list if needed
     if (VerifiedUsers.Contains(e.User.Nick))
         VerifiedUsers.Remove(e.User.Nick);
 }
예제 #2
0
        void UserDB_UserPart(object sender, UserPartEventArgs e)
        {
            User user = userdb.GetUserByName(e.User.Nick);
            if (user == null) return;

            user.Online = false;
            user.LastOnline = DateTime.Now;

            SaveDB();
        }