summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-16 19:13:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-16 19:13:45 +0000
commit906ed180a852c3376ced23f18ee37651c24b37f1 (patch)
treebca9e088e8130809a637a8273b03bfa9209052a0 /src
parentdbb912be820acee9bbcfe35da33a6b33c33a2574 (diff)
Bad maths, bad! go sit in the corner
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3235 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index e9cdeab93..cbef34ff7 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1404,7 +1404,7 @@ class TreeSocket : public InspSocket
if (this->keylength)
{
// pad it to the key length
- int n = line.length() % this->keylength;
+ int n = this->keylength - (line.length() % this->keylength);
if (n)
{
log(DEBUG,"Append %d chars to line to make it %d long from %d, key length %d",n,n+line.length(),line.length(),this->keylength);