Improved calculation to account for server name on start of numeric, plus spacing

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3294 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-02-22 21:52:36 +00:00
parent 74d823b2a2
commit b06361b4ec

View File

@ -127,7 +127,7 @@ class ModuleSafeList : public Module
{
/* Increment total plus linefeed */
int counter = snprintf(buffer,MAXBUF,"322 %s %s %d :[+%s] %s",u->nick,chan->name,usercount_i(chan),chanmodes(chan,has_channel(u,chan)),chan->topic);
amount_sent += counter + 2;
amount_sent += counter + 4 + Srv->GetServerName().length();
log(DEBUG,"m_safelist.so: Sent %ld of safe %ld / 2",amount_sent,u->sendqmax);
WriteServ(u->fd,"%s",buffer);
}