summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-27 15:27:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-27 15:27:20 +0000
commitf8676c65c077490748cb0d81a5439bcb3c7dd891 (patch)
treeeaabd8edb33bb555fb5e105ae5eec9af12b89270 /src
parentc5c95f4fc9d6872f772adef132aadc83cea15b0c (diff)
With small sendq's, this can still exceed the sendq, so now we've reduced the amount it fills
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3365 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_safelist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index 127990051..1125380ab 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -102,7 +102,7 @@ class ListTimer : public InspTimer
/* 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 + 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 / 4",amount_sent,u->sendqmax);
WriteServ_NoFormat(u->fd,buffer);
}
else
@@ -116,7 +116,7 @@ class ListTimer : public InspTimer
ld->list_position++;
}
- while ((chan != NULL) && (amount_sent < (u->sendqmax / 2)));
+ while ((chan != NULL) && (amount_sent < (u->sendqmax / 4)));
}
}