]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Improved calculation to account for server name on start of numeric, plus spacing
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Feb 2006 21:52:36 +0000 (21:52 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 22 Feb 2006 21:52:36 +0000 (21:52 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3294 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_safelist.cpp

index afa77c13159718542b4b2080af4751d3d3dc4501..68534fb22ebb74f29d1680a39dbeb30d42a742b3 100644 (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);
                                        }