Inheritance: IrcEventArgs
 internal void HandleOnPart(object sender, PartEventArgs e)
 {
     if (OnPart != null)
         OnPart(this, e);
 }
 void BotOnPart(object sender, PartEventArgs e)
 {
     if (e.Who == Bot.Nickname)
     {
         lock (NickCache)
         {
             NickCache.Clear();
         }
     }
     else
     {
         RemoveNick(e.Who);
     }
 }
 public void PluginsOnPart(object sender, PartEventArgs e)
 {
     OnPart(this, e);
 }
Ejemplo n.º 4
0
 void OnPart(object sender, PartEventArgs e)
 {
     if (e.Who == BotMethods.Nickname)
     {
         games.Remove(e.Channel);
     }
 }
Ejemplo n.º 5
0
 private void PartHandler(object sender, PartEventArgs e)
 {
     lock (seenData)
     {
         var result = seenData.SeenEntries.Where(s => s.Nick == e.Who).FirstOrDefault();
         if (result != null)
         {
             result.LastSeenTime = DateTime.Now;
             result.LastAction = "(PART) " + e.PartMessage;
             result.OnStatus = false;
         }
         SaveDb();
     }
 }