Exemplo n.º 1
0
 public bUserQuit(SlimClient client, string reason, QuitNewState state = QuitNewState.Gone)
 {
     this.client = client;
     UserId      = client.UserId;
     Reason      = reason;
     State       = state;
 }
Exemplo n.º 2
0
        public bMessage(object sender, string target, string message)
        {
            sendingClient = sender ?? string.Empty;
            this.message  = message;
            this.target   = target;

            SlimClient sc = sendingClient as SlimClient;

            if (sc != null)
            {
                senderId = sc.UserId;
            }
        }
Exemplo n.º 3
0
        public void WriteToStreamIrc(SerializationWriter sw)
        {
            string     sender;
            SlimClient sc = sendingClient as SlimClient;

            if (sc != null)
            {
                sender = sc.IrcFullName;
            }
            else
            {
                sender = sendingClient.ToString();
            }

            sw.WriteUTF8(":" + sender + " PRIVMSG " + target.Replace(' ', '_') + " :" + message + "\n");
        }
Exemplo n.º 4
0
 public bChannelJoin(SlimClient client, string channelName)
 {
     Client      = client;
     ChannelName = channelName;
 }