Exemple #1
0
        void PS2StatBot_ChannelListRecieved(object sender, ChannelListEventArgs e)
        {
            foreach (string user in e.Channel.Users)
            {
                User u = userdb.GetUserByName(user);
                if (u == null) continue;
                u.Online = true;

                UserMessage[] messages = userdb.GetMessagesSinceTime(u, DateTime.Now);
                if (messages.Length > 0)
                {
                    foreach (UserMessage m in messages)
                    {
                        this.SendMessage(user, m.Message);
                    }
                    SaveDB();
                }
            }
        }
Exemple #2
0
 void JeBotMain_ChannelListRecieved(object sender, ChannelListEventArgs e)
 {
     // Browse the channel list for managers and identify each
     return;
     foreach (var nick in e.Channel.Users)
     {
         if (Managers.Contains(nick))
             IdentifyUser(nick, null);
     }
 }