summaryrefslogtreecommitdiff
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp
index 1d3d22575..0f402a1ed 100644
--- a/src/modules/m_botmode.cpp
+++ b/src/modules/m_botmode.cpp
@@ -21,10 +21,14 @@ using namespace std;
#include "users.h"
#include "channels.h"
#include "modules.h"
+#include "helperfuncs.h"
+#include "configreader.h"
#include "inspircd.h"
/* $ModDesc: Provides support for unreal-style umode +B */
+extern InspIRCd* ServerInstance;
+
class BotMode : public ModeHandler
{
public:
@@ -89,7 +93,7 @@ class ModuleBotMode : public Module
{
if (dst->IsModeSet('B'))
{
- src->WriteServ("335 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is a \2bot\2 on "+Srv->GetNetworkName());
+ src->WriteServ("335 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is a \2bot\2 on "+ServerInstance->Config->Network);
}
}