Exemplo n.º 1
0
        private void LocalUser_InviteReceived(object sender, IrcChannelInvitationEventArgs e)
        {
            var network = NetworkFromIrcClient(sender as StandardIrcClient);

            BroadcastMessageToNetwork(network, new Message()
            {
                From = e.Inviter.NickName,
                Text = $"You were invited to: {e.Channel} {e.Comment}",
                Type = MessageType.System
            });
        }
Exemplo n.º 2
0
 private static void ircClient2_LocalUser_InviteReceived(object sender, IrcChannelInvitationEventArgs e)
 {
     if (client2LocalUserInviteReceivedEvent != null)
         client2LocalUserInviteReceivedEvent.Set();
 }
Exemplo n.º 3
0
 private void localUserInviteReceived(object sender, IrcChannelInvitationEventArgs e)
 {
     // TODO Ask the user before joining the channel
     this.Client.Channels.Join(e.Channel.Name);
 }