예제 #1
0
        public virtual void TimeEnd()
        {
            hackEndTimeVote = true;
            int      vote;
            IVotable iv = this as IVotable;

            if (iv != null)
            {
                iv.Vote(TasSayEventArgs.Default, new string[] {});
            }
        }
예제 #2
0
 public void RegisterVote(TasSayEventArgs e, string[] words)
 {
     if (activePoll != null)
     {
         if (activePoll.Vote(e, words))
         {
             StopVote();
         }
     }
     else
     {
         Respond(e, "There is no poll going on, start some first");
     }
 }
예제 #3
0
 public void RegisterVote(TasSayEventArgs e, bool vote)
 {
     if (activePoll != null)
     {
         if (activePoll.Vote(e, vote))
         {
             pollTimer.Enabled = false;
             activePoll        = null;
         }
     }
     else
     {
         Respond(e, "There is no poll going on, start some first");
     }
 }