static void irc_OnInvite(object sender, InviteEventArgs e) { //make equal to .join command string[] jArgs = { "join", e.Data.Channel }; Commands.Core.Channel.join.command(jArgs, e.Data.Channel, e.Data.Nick, GlobalVar.irc); }
private void OnInvite(object sender, InviteEventArgs e) { var builder = CreateMessageBuilder(); builder.AppendEventPrefix(); builder.MessageType = MessageType.Normal; builder.AppendIdendityName(CreatePerson(e.Who)); // TRANSLATOR: do NOT change the position of {0}! var text = builder.CreateText(_("{0} invites you to {1}"), String.Empty, e.Channel); text.IsHighlight = true; builder.AppendText(text); Session.AddMessageToChat(_NetworkChat, builder.ToMessage()); }
void IRC_OnInvite(object sender, InviteEventArgs e) { Output(new ColorTextPair[] { new ColorTextPair(ZChat.Options.TextFore, "!") }, new ColorTextPair[] { new ColorTextPair(ZChat.Options.TextFore, e.Who + " invited you to " + e.Channel) }); ShowActivity(); }