--- /dev/null
+// Kelsier project - (Command.cs)
+// Written by the Jobbig codeteam. <http://jobbig.eu/code/>
+//
+// 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 <http://www.gnu.org/licenses/>.
+//
+using System;
+namespace Kelsier {
+ public class Command {
+ 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(string cmd, string[] args, User user, Channel chan, bool chanmsg) {
+ 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;
+
+ Root.log.debug(String.Format("cmd={0},args={1},user={2},chan={3},chanmsg={4},replyTo={5}", cmd, args.Length, user.nick, chan.name, chanmsg, replyTo));
+ }
+ }
+}
+