Replace the Bitlair spacestate hook with a generic script hook
This commit is contained in:
parent
7935c982f9
commit
84cec0da89
4 changed files with 80 additions and 13 deletions
6
config.c
6
config.c
|
@ -23,7 +23,7 @@
|
|||
#include "includes.h"
|
||||
#include "database.h"
|
||||
#include "jsonbot.h"
|
||||
#include "spacestate.h"
|
||||
#include "hook_script.h"
|
||||
|
||||
/* My global state */
|
||||
configuration *conf = NULL;
|
||||
|
@ -163,8 +163,8 @@ STATUS read_configuration_file(TALLOC_CTX *mem_ctx)
|
|||
database_init();
|
||||
} else if (strcmp(ptr, "jsonbot") == 0) {
|
||||
jsonbot_init();
|
||||
} else if (strcmp(ptr, "spacestate") == 0) {
|
||||
spacestate_init();
|
||||
} else if (strcmp(ptr, "script") == 0) {
|
||||
script_init();
|
||||
}
|
||||
} while((ptr = strtok(NULL, " ")) != NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue