diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/bots.h | 3 | ||||
| -rw-r--r-- | include/modules.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/bots.h b/include/bots.h index dc51f77f7..7c36e77a7 100644 --- a/include/bots.h +++ b/include/bots.h @@ -15,6 +15,8 @@ * --lara */ +struct CommandHash; + class CoreExport BotInfo { public: @@ -30,6 +32,7 @@ class CoreExport BotInfo int16 chancount; /* Number of channels that use the bot. */ /* Dynamic data */ time_t lastmsg; /* Last time we said something */ + CommandHash **cmdTable; /** Create a new bot. * XXX: Note - this constructor is considered obsolete. Use the four parameter form. diff --git a/include/modules.h b/include/modules.h index 48be7c684..05ef6b524 100644 --- a/include/modules.h +++ b/include/modules.h @@ -123,7 +123,7 @@ typedef enum { MOD_OP_LOAD, MOD_OP_UNLOAD } ModuleOperation; /* Structure for information about a *Serv command. */ typedef struct Command_ Command; -typedef struct CommandHash_ CommandHash; +struct CommandHash; typedef struct ModuleLang_ ModuleLang; typedef struct ModuleHash_ ModuleHash; typedef struct Message_ Message; @@ -430,7 +430,7 @@ struct Command_ { Command *next; /* Next command responsible for the same command */ }; -struct CommandHash_ { +struct CommandHash { char *name; /* Name of the command */ Command *c; /* Actual command */ CommandHash *next; /* Next command */ |
