Exemplo n.º 1
0
 internal void HandleOnTopicChange(object sender, TopicChangeEventArgs e)
 {
     if (OnTopicChange != null)
     {
         OnTopicChange(this, e);
     }
 }
Exemplo n.º 2
0
        private static void OnTopicChange(object sender, TopicChangeEventArgs e)
        {
            string message = CRCStrings.Localize("client_topic_change") + e.NewTopic;

            CRCDisplay.AddInformation(message);
            CRCGame.AddInformation(message);
        }
Exemplo n.º 3
0
 void ClientOnTopicChange(object sender, TopicChangeEventArgs e)
 {
     _events.Enqueue(new IrcEvent {
         Type = IrcEvent.EventType.TopicChange, Event = e
     });
     _waitHandle.Set();
 }
Exemplo n.º 4
0
        void ClientTopicChange(TopicChangeEventArgs e)
        {
            var channel = Server.Channel(e.Channel);

            if (channel != null)
            {
                channel.Topic = Irc.Parser.Helper.RemoveSpecialIrcChars(e.NewTopic);
                channel.Commit();
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Handles the IRC OnTopicChange event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">EventArgs.</param>
 void OnTopicChange(object sender, TopicChangeEventArgs e)
 {
     if (e.Channel.ToLower() == channel && e.NewTopic.StartsWith("!lazor "))
     {
         List <string> pars = new List <string>(e.NewTopic.Split(' '));
         SetStatus("Controlled by topic");
         try
         {
             txtTargetIP.Invoke(new CheckParamsDelegate(CheckParams), pars);
         }
         catch
         { }
     }
 }
Exemplo n.º 6
0
 void mClient_OnTopicChange(object sender, TopicChangeEventArgs e)
 {
     AddText(string.Format("*** {0} changed the topic to {1}", e.Who, e.NewTopic));
 }
Exemplo n.º 7
0
 void OnTopicChange(object sender, TopicChangeEventArgs e)
 {
     msgcolours(msglevel.info, "INFO");
     Console.WriteLine("{0} changed {1}'s topic to {2}", e.Who, e.Channel, e.NewTopic);
 }
 public void PluginsOnTopicChange(object sender, TopicChangeEventArgs e)
 {
     OnTopicChange(this, e);
 }
Exemplo n.º 9
0
 void TopicChange(object s, TopicChangeEventArgs e)
 {
     writer.Log(e.Channel,
                "-!- {0} changed the topic to: {1}", e.Who, e.NewTopic);
 }