changed Makefile; build all commands as an own file
[NeonServV5.git] / cmd_neonserv_chanservsync.c
index 67123dffbd49984731b4e5d40166aaa29f2e6a6c..56033004df836e5fc5e80b1a7b284b8952022d05 100644 (file)
@@ -1,4 +1,6 @@
 
+#include "cmd_neonserv.h"
+
 /*
 * argv[0] - botnick
 * argv[1] - key
@@ -30,7 +32,7 @@ struct neonserv_cmd_chanservsync_auth_cache {
 struct neonserv_cmd_chanservsync_cache *neonserv_cmd_chanservsync_used = NULL;
 const char* neonserv_cmd_chanservsync_supported[] = {"ChanServ", NULL};
 
-static CMD_BIND(neonserv_cmd_chanservsync) {
+CMD_BIND(neonserv_cmd_chanservsync) {
     if(neonserv_cmd_chanservsync_used && time(0) - neonserv_cmd_chanservsync_used->last_response < CHANSERVSYNC_END_TIMEOUT) {
         reply(getTextBot(), user, "NS_CHANSERVSYNC_INUSE");
         return;
@@ -90,6 +92,7 @@ static CMD_BIND(neonserv_cmd_chanservsync) {
     putsock(client, "PRIVMSG %s :users %s", botnick, chan->name);
     bind_privnotice(neonserv_cmd_chanservsync_notice_listener);
     reply(getTextBot(), user, "NS_CHANSERVSYNC_SYNCHRONIZING", chan->name, botnick);
+    logEvent(event);
 }
 
 static void neonserv_cmd_chanservsync_notice_listener(struct UserNode *user, struct UserNode *target, char *message) {