Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / EventLogger.h
index 71da262138942fa8e7ea125aadb3d58a26e7b14f..4b8927cd04449fa0ec2fb4653b0c5ef9acc98860 100644 (file)
@@ -1,3 +1,19 @@
+/* EventLogger.h - NeonServ v5.3
+ * Copyright (C) 2011-2012  Philipp Kreil (pk910)
+ * 
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU 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 General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License 
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. 
+ */
 #ifndef _EventLogger_h
 #define _EventLogger_h
 
 struct ClientSocket;
 struct UserNode;
 struct ChanNode;
+struct cmd_binding;
 
 struct Event {
     struct ClientSocket *client;
     struct UserNode *user;
     struct ChanNode *chan;
     time_t event_time;
-    char *command;
+    struct cmd_binding *command;
     char *arguments;
     unsigned int flags; /* defined in modcmd.h */
     
     struct Event *next;
 };
 
-struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, struct ChanNode *chan, char *command, char **args, int argc, int flags);
+struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, struct ChanNode *chan, struct cmd_binding *command, char **args, int argc, int flags);
 void logEvent(struct Event *event);
 void destroyEvents();