NeonHelp: reinvite active requests when resetting the invite list
[NeonServV5.git] / src / modules / NeonHelp.mod / bot_NeonHelp.h
index eaf47ff5405cdc8966791711ea84852185eccbd3..5af9d15df137d0785cfb87700b99bd73ad25c4fa 100644 (file)
@@ -1,4 +1,4 @@
-/* bot_NeonHelp.h - NeonServ v5.3
+/* bot_NeonHelp.h - NeonServ v5.4
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -17,7 +17,7 @@
 #ifndef _bot_NeonHelp_h
 #define _bot_NeonHelp_h
 
-#include "main.h"
+#include "../../main.h"
 
 /* definition for ClientSocket struct */
 #define botclass_helpnode botclassvalue1 
 struct UserNode;
 struct ChanNode;
 
+struct NeonHelpNodeUser {
+       struct UserNode *user;
+       struct NeonHelpNodeUser *next;
+};
+
 struct NeonHelpNode {
-    struct UserNode *user;
+    struct NeonHelpNodeUser *user;
     int suppid;
     char status:6;
     char announce:2;
@@ -42,4 +47,7 @@ void init_NeonHelp(int type);
 void loop_NeonHelp();
 void free_NeonHelp(int type);
 
+void neonhelp_destroy_support_request(struct ClientSocket *client, struct NeonHelpNode *helpnode, int do_reply);
+void neonhelp_invite_active_requests(struct ClientSocket *client, struct ChanNode *support, struct ChanNode *public, struct UserNode *ignore_user);
+
 #endif
\ No newline at end of file