diff options
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r-- | src/modules/m_knock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index e681f02d6..9e505b14d 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -22,6 +22,7 @@ using namespace std; #include "channels.h" #include "modules.h" #include "helperfuncs.h" +#include "configreader.h" #include "inspircd.h" /* $ModDesc: Provides support for /KNOCK and mode +K */ @@ -64,7 +65,7 @@ class cmd_knock : public command_t if (c->modes[CM_INVITEONLY]) { - c->WriteChannelWithServ((char*)Srv->GetServerName().c_str(), "NOTICE %s :User %s is KNOCKing on %s (%s)", c->name, user->nick, c->name, line.c_str()); + c->WriteChannelWithServ((char*)ServerInstance->Config->ServerName, "NOTICE %s :User %s is KNOCKing on %s (%s)", c->name, user->nick, c->name, line.c_str()); user->WriteServ("NOTICE %s :KNOCKing on %s",user->nick,c->name); return; } |