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_safelist.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_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)); } |