internal void HandleOnTopicChange(object sender, TopicChangeEventArgs e) { if (OnTopicChange != null) { OnTopicChange(this, e); } }
private static void OnTopicChange(object sender, TopicChangeEventArgs e) { string message = CRCStrings.Localize("client_topic_change") + e.NewTopic; CRCDisplay.AddInformation(message); CRCGame.AddInformation(message); }
void ClientOnTopicChange(object sender, TopicChangeEventArgs e) { _events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.TopicChange, Event = e }); _waitHandle.Set(); }
void ClientTopicChange(TopicChangeEventArgs e) { var channel = Server.Channel(e.Channel); if (channel != null) { channel.Topic = Irc.Parser.Helper.RemoveSpecialIrcChars(e.NewTopic); channel.Commit(); } }
/// <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 { } } }
void mClient_OnTopicChange(object sender, TopicChangeEventArgs e) { AddText(string.Format("*** {0} changed the topic to {1}", e.Who, e.NewTopic)); }
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); }
void TopicChange(object s, TopicChangeEventArgs e) { writer.Log(e.Channel, "-!- {0} changed the topic to: {1}", e.Who, e.NewTopic); }