added event_invite & event_topic
[NeonServV5.git] / bot_NeonServ.c
index 2d17bd11559170f7bc2cab5b239808cc6f9fad5a..dba2e6a1fd79e780cc73928f3650d7cb4a9d4c36 100644 (file)
@@ -220,6 +220,11 @@ static const struct default_language_entry msgtab[] = {
     {"NS_SEARCH_HEADER", "The following channels were found:"},
     {"NS_COMMAND_BINDING", "$b%s$b is a binding of %s %s"}, /* {ARGS: "TestCommand", "TestFunction", "TestParameters"} */
     {"NS_COMMAND_ACCESS", "You need at least %d channel access and %d oper access to execute this command."}, /* {ARGS: 500, 100} */
+    {"NS_TOPIC_ACCESS", "You lack sufficient access in %s to change the topic."}, /* {ARGS: "#TestChan"} */
+    {"NS_BOTWAR_DETECTED", "$b$k4BOTWAR DETECTED!$k Please check the channel configuration!$b"},
+    {"NS_BOTWAR_REPORTED", "A supporter has been informed to help you preventing botwars in the future."},
+    {"NS_BOTWAR_ALERT", "$b$k4BOTWAR ALERT:$k$b Botwar in $b%s$b detected. (opponent: $b%s$b) Please join and help them preventing Botwars."}, /* {ARGS: "#TestChan", "OtherBot"} */
+    {"NS_INVITE_FAIL", "$b%s$b is not registered with %s or suspended."}, /* {ARGS: "#TestChan", "NeonServ"} */
     {NULL, NULL}
 };
 
@@ -308,6 +313,7 @@ INCLUDE ALL CMD's HERE
 #include "cmd_neonserv_raw.c"
 #include "cmd_neonserv_reloadlang.c"
 #include "cmd_neonserv_oplog.c"
+//#include "cmd_neonserv_rename.c"
 
 //HARDCODED FUN CMD's
 //#include "cmd_neonserv_iplocate.c"
@@ -321,8 +327,8 @@ INCLUDE ALL CMD's HERE
 //#include "event_neonserv_mode.c"
 #include "event_neonserv_ctcp.c"
 #include "event_neonserv_notice.c"
-//#include "event_neonserv_invite.c"
-//#include "event_neonserv_topic.c"
+#include "event_neonserv_invite.c"
+#include "event_neonserv_topic.c"
 
 static struct ClientSocket *getBotForChannel(struct ChanNode *chan) {
     struct ClientSocket *bot, *use_bot = NULL, *second_bot = NULL, *third_bot = NULL;
@@ -521,6 +527,8 @@ void init_NeonServ() {
     bind_chanctcp(neonserv_event_chanctcp);
     bind_privctcp(neonserv_event_privctcp);
     bind_channotice(neonserv_event_channotice);
+    bind_topic(neonserv_event_topic);
+    bind_invite(neonserv_event_invite);
     
     set_trigger_callback(BOTID, neonserv_trigger_callback);