]> jfr.im git - z_archive/kelsier.git/blobdiff - Command.cs
Adding auth
[z_archive/kelsier.git] / Command.cs
index deb0e5a3ac186b211b7e228e13e32d47d569d88e..85b86038acfbd378cab667503b6510bdb9825ef9 100644 (file)
@@ -1,4 +1,4 @@
-// Kelsier project - (Command.cs)
+// Kelsier project - Command info code (Command.cs)
 // Written by the Jobbig codeteam. <http://jobbig.eu/code/>
 // 
 // Copyright 2013 John Runyon.
 // 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));
-               }
-       }
+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;
+        }
+    }
 }