summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 23:42:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 23:42:37 +0000
commit95cb80851bdc0d466de87f8706459ae7ca027cb0 (patch)
tree8235a8a52d54cdf758ee312c4c456ca8597d319e
parent5f7fcbaae0f5b2cf0ae676604f91d66a5a5da9f1 (diff)
Ommitting \r and \n from debug display of outbound lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2712 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index fdcb0a432..396a6a262 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -1236,7 +1236,8 @@ class TreeSocket : public InspSocket
std::string ret = "";
while ((*line != '\n') && (strlen(line)))
{
- ret = ret + *line;
+ if ((*line != '\r') && (*line != '\n'))
+ ret = ret + *line;
line++;
}
if ((*line == '\n') || (*line == '\r'))