diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 16:37:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 16:37:01 +0000 |
commit | 94288cdc2efb02eab9f27b3225adad839a7f2b58 (patch) | |
tree | d73770414cfb8116066c7f6ba213f5327b6f03f3 /src/modules/m_nonicks.cpp | |
parent | fca345d6b5bc453d3e0b914a1c7a1865991ea220 (diff) |
Fixes and removal of Server::GetServerName()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4844 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r-- | src/modules/m_nonicks.cpp | 5 |
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++) |