// Kelsier project - Command info code (Command.cs) // Written by the Jobbig codeteam. // // Copyright 2013 John Runyon. // // This file is part of the Kelsier project. // // Kelsier is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . // using System; namespace Kelsier.Common { public class Command { public Bot bot { get; private set; } public string cmd { get; private set; } public string[] args { get; private set; } public User user { get; private set; } public Channel chan { get; private set; } public bool chanmsg { get; private set; } public string replyTo { get; private set; } public Command(Bot bot, string cmd, string[] args, User user, Channel chan, bool chanmsg) { this.bot = bot; this.cmd = cmd; this.args = args; this.user = user; this.chan = chan; this.chanmsg = chanmsg; if (chanmsg) this.replyTo = chan.name; else this.replyTo = user.nick; } } }