상속: IrcEventArgs
예제 #1
0
파일: Program.cs 프로젝트: jefe323/Botler
 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);
 }
예제 #2
0
 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());
 }
예제 #3
0
        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();
        }