]> jfr.im git - z_archive/kelsier.git/blame - Command.cs
Adding auth
[z_archive/kelsier.git] / Command.cs
CommitLineData
169f10ae 1// Kelsier project - Command info code (Command.cs)
7ed73705
JR
2// Written by the Jobbig codeteam. <http://jobbig.eu/code/>
3//
4// Copyright 2013 John Runyon.
5//
6// This file is part of the Kelsier project.
7//
8// Kelsier is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Affero General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU Affero General Public License for more details.
17//
18// You should have received a copy of the GNU Affero General Public License
19// along with this program. If not, see <http://www.gnu.org/licenses/>.
20//
169f10ae 21
7ed73705 22using System;
e5993b94 23namespace Kelsier.Common {
36e6a9fe 24 public class Command {
e5993b94 25 public Bot bot { get; private set; }
36e6a9fe
JR
26 public string cmd { get; private set; }
27 public string[] args { get; private set; }
28 public User user { get; private set; }
29 public Channel chan { get; private set; }
30 public bool chanmsg { get; private set; }
31 public string replyTo { get; private set; }
32
33 public Command(Bot bot, string cmd, string[] args, User user, Channel chan, bool chanmsg) {
e5993b94 34 this.bot = bot;
36e6a9fe
JR
35 this.cmd = cmd;
36 this.args = args;
37 this.user = user;
38 this.chan = chan;
39 this.chanmsg = chanmsg;
40 if (chanmsg)
41 this.replyTo = chan.name;
42 else
43 this.replyTo = user.nick;
44 }
45 }
7ed73705
JR
46}
47