diff options
Diffstat (limited to 'src/modules/m_safelist.cpp')
-rw-r--r-- | src/modules/m_safelist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 2aa5a02f6..091d59d1a 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -22,6 +22,7 @@ using namespace std; #include "helperfuncs.h" #include "message.h" #include <vector> +#include "configreader.h" #include "inspircd.h" extern time_t TIME; @@ -109,7 +110,7 @@ class ListTimer : public InspTimer { int counter = snprintf(buffer,MAXBUF,"322 %s %s %ld :[+%s] %s",u->nick,chan->name,users,chan->ChanModes(has_user),chan->topic); /* Increment total plus linefeed */ - amount_sent += counter + 4 + Srv->GetServerName().length(); + amount_sent += counter + 4 + strlen(ServerInstance->Config->ServerName); log(DEBUG,"m_safelist.so: Sent %ld of safe %ld / 4",amount_sent,u->sendqmax); u->WriteServ(std::string(buffer)); } |