From 94288cdc2efb02eab9f27b3225adad839a7f2b58 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 16:37:01 +0000 Subject: Fixes and removal of Server::GetServerName() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4844 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nonicks.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_nonicks.cpp') 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::iterator i = user->chans.begin(); i != user->chans.end(); i++) -- cgit v1.3.1-10-gc9f91