Пример #1
0
		void OnTopic(object sender, TopicEventArgs e)
		{
			if(e.Channel.ToLower() == channel && e.Topic.StartsWith("!lazor "))
			{
				List<string> pars = new List<string>(e.Topic.Split(' '));
				SetStatus("Controlled by topic");
				try
				{
					txtTargetIP.Invoke(new CheckParamsDelegate(CheckParams), pars);
				}
				catch
				{ }
			}
		}
Пример #2
0
 void mClient_OnTopic(object sender, TopicEventArgs e)
 {
     AddText(string.Format("*** Topic: {0}", e.Topic));
 }
Пример #3
0
 private void _OnTopic(object sender, TopicEventArgs e)
 {
     GroupChatModel cchat = (GroupChatModel)GetChat(e.Channel, ChatType.Group);
     var topic = CreateMessageBuilder();
     topic.AppendMessage(e.Topic);
     Session.UpdateTopicInGroupChat(cchat, topic.ToMessage());
 }
Пример #4
0
        void irc_OnTopic(object sender, TopicEventArgs e)
        {
            if (e.Channel != Channel) return;

            UpdateTopic(e.Topic);
        }
Пример #5
0
 private void OnTopic(object sender, TopicEventArgs e)
 {
     String[] pars = e.Topic.Split(' ');
     Console.WriteLine("Control command: " + e.Topic);
     ParseCommand(pars);
 }
Пример #6
0
 private void _OnTopic(object sender, TopicEventArgs e)
 {
     GroupChatModel cchat = (GroupChatModel)GetChat(e.Channel, ChatType.Group);
     Session.UpdateTopicInGroupChat(cchat, e.Topic);
 }
Пример #7
0
		void ClientTopic(TopicEventArgs e)
		{
			var channel = Server.Channel(e.Channel);
			if (channel != null)
			{
				channel.Topic = Irc.Parser.Helper.RemoveSpecialIrcChars(e.Topic);
				channel.Commit();
			}
		}
Пример #8
0
		void ClientOnTopic(object sender, TopicEventArgs e)
		{
			_events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Topic, Event = e });
			_waitHandle.Set();
		}