aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_serverbots.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-10-02 17:25:07 -0400
committerGravatar Daniel De Graaf2010-10-02 17:25:07 -0400
commit02528316c5ccbe10464a3aeed12eef5637d2319b (patch)
tree4ef0fe57023a076a086e6a7bb6ee3f3eed0e7688 /src/modules/m_serverbots.cpp
parentRemove some unneeded complexity from spanningtree (diff)
Fix error handling and bad SQL syntax
Diffstat (limited to 'src/modules/m_serverbots.cpp')
-rw-r--r--src/modules/m_serverbots.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_serverbots.cpp b/src/modules/m_serverbots.cpp
index 4765336d7..53bcb5ef2 100644
--- a/src/modules/m_serverbots.cpp
+++ b/src/modules/m_serverbots.cpp
@@ -15,6 +15,9 @@
/* $ModDesc: Provides fake clients that respond to messages. */
+namespace m_serverbots
+{
+
/** Command definition
*/
class Alias
@@ -203,6 +206,7 @@ class ModuleServerBots : public Module
void init()
{
ServerInstance->Modules->Attach(I_OnUserMessage, this);
+ ServerInstance->Modules->AddService(dataExt);
}
Version GetVersion()
@@ -315,4 +319,8 @@ class ModuleServerBots : public Module
}
};
+}
+
+using m_serverbots::ModuleServerBots;
+
MODULE_INIT(ModuleServerBots)