summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 2cf62dd61..9d1ddb0ff 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -23,10 +23,13 @@ using namespace std;
#include "modules.h"
#include "helperfuncs.h"
#include "hashcomp.h"
+#include "configreader.h"
#include "inspircd.h"
/* $ModDesc: Provides support for unreal-style GLOBOPS and umode +g */
+extern InspIRCd* ServerInstance;
+
class NoNicks : public ModeHandler
{
public:
@@ -92,7 +95,7 @@ class ModuleNoNickChange : public Module
virtual int OnUserPreNick(userrec* user, const std::string &newnick)
{
irc::string server = user->server;
- irc::string me = Srv->GetServerName().c_str();
+ irc::string me = ServerInstance->Config->ServerName;
if (server == me)
{
for (std::vector<ucrec*>::iterator i = user->chans.begin(); i != user->chans.end(); i++)