Ejemplo n.º 1
0
        public CommandContext(Client irc, UserCollection users, User from, Channel channel, string message)
        {
            this._irc = irc;
            this._users = users;

            this.From = from;
            this._channel = channel;

            if (message[0] == '!' || message[0] == '.')
            {
                this._replyNotice = true;
            }
            else
            {
                this._replyNotice = false;
            }

            if (message[0] == '!' || message[0] == '.' || message[0] == '@')
            {
                this.Message = message.Substring(1);
            }
            else
            {
                this.Message = message;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 ///   Copies the properties of the given User onto this User.
 /// </summary>
 public void CopyFrom(User user)
 {
     this.Host = user.Host;
     this.Nickname = user.Nickname;
     this.Password = user.Password;
     this.Name = user.Name;
     this.Username = user.Username;
     this.Server = user.Server;
     this.IrcOperator = user.IrcOperator;
     this.Online = user.Online;
     this.Away = user.Away;
     this.AwayMessage = user.AwayMessage;
 }
Ejemplo n.º 3
0
 /// <summary>
 ///   Creates a new instance of the <see cref="Query" /> class on the given client with the given User.
 /// </summary>
 public Query(Client client, User user)
 {
     this.client = client;
     this.journal.CollectionChanged += this.JournalCollectionChanged;
     this.User = user;
 }