Inheritance: IrcEventArgs
 internal void HandleOnQuit(object sender, QuitEventArgs e)
 {
     if (OnQuit != null)
         OnQuit(this, e);
 }
 public void PluginsOnQuit(object sender, QuitEventArgs e)
 {
     OnQuit(this, e);
 }
 void BotOnQuit(object sender, QuitEventArgs e)
 {
     if (e.Who == Bot.Nickname)
     {
         lock (NickCache)
         {
             NickCache.Clear();
         }
     }
     else
     {
         RemoveNick(e.Who);
     }
 }
Ejemplo n.º 4
0
 private void QuitHandler(object sender, QuitEventArgs e)
 {
     lock (seenData)
     {
         var result = seenData.SeenEntries.Where(s => s.Nick == e.Who).FirstOrDefault();
         if (result != null)
         {
             result.LastSeenTime = DateTime.Now;
             result.LastAction = "(QUIT) " + e.QuitMessage;
             result.OnStatus = false;
         }
         SaveDb();
     }
 }