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 { } } }
void mClient_OnTopic(object sender, TopicEventArgs e) { AddText(string.Format("*** Topic: {0}", e.Topic)); }
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()); }
void irc_OnTopic(object sender, TopicEventArgs e) { if (e.Channel != Channel) return; UpdateTopic(e.Topic); }
private void OnTopic(object sender, TopicEventArgs e) { String[] pars = e.Topic.Split(' '); Console.WriteLine("Control command: " + e.Topic); ParseCommand(pars); }
private void _OnTopic(object sender, TopicEventArgs e) { GroupChatModel cchat = (GroupChatModel)GetChat(e.Channel, ChatType.Group); Session.UpdateTopicInGroupChat(cchat, e.Topic); }
void ClientTopic(TopicEventArgs e) { var channel = Server.Channel(e.Channel); if (channel != null) { channel.Topic = Irc.Parser.Helper.RemoveSpecialIrcChars(e.Topic); channel.Commit(); } }
void ClientOnTopic(object sender, TopicEventArgs e) { _events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Topic, Event = e }); _waitHandle.Set(); }