mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-01 13:50:04 -04:00
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:
parent
74d823b2a2
commit
b06361b4ec
@ -127,7 +127,7 @@ class ModuleSafeList : public Module
|
|||||||
{
|
{
|
||||||
/* Increment total plus linefeed */
|
/* 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);
|
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);
|
log(DEBUG,"m_safelist.so: Sent %ld of safe %ld / 2",amount_sent,u->sendqmax);
|
||||||
WriteServ(u->fd,"%s",buffer);
|
WriteServ(u->fd,"%s",buffer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user