summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-21 13:57:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-21 13:57:13 +0000
commit66f487ca7770309613612f4f8edbb3ac520c9ac1 (patch)
tree6ebc90ca4e14103aa1277c6c3b399996a3d72036
parent9ede59892d06b57dea0c9ef90dd88062417b0202 (diff)
Tiny tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5506 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 0df9ebf86..b00db8827 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2078,8 +2078,8 @@ class TreeSocket : public InspSocket
* chance of the \r being near the end of the
* string, not the start.
*/
- if (ret.rfind("\r") != std::string::npos)
- ret = in_buffer.substr(0,in_buffer.rfind("\r")-1);
+ if (ret.find("\r") != std::string::npos)
+ ret = in_buffer.substr(0,in_buffer.find("\r")-1);
/* Process this one, abort if it
* didnt return true.
*/