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>
 ///   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;
 }