summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-28 01:46:11 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-28 01:46:11 +0000
commit5da606a02777de3d91f3b88d278ce49cadb67af5 (patch)
tree6d56980ed0eaab9a59827072f1ab881fa0a1e359 /src
parent0d85e2c7d397a89bb285b3a207562e4cf2e73b3f (diff)
Fixed a crash when spanningtree is given a blank line; really simple fix, and I had to wait 10 minutes to test it :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5823 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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 37132059c..60eb650dd 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -3064,11 +3064,11 @@ class TreeSocket : public InspSocket
irc::string command;
std::string prefix;
+ line = line.substr(0, line.find_first_of("\r\n"));
+
if (line.empty())
return true;
- line = line.substr(0, line.find_first_of("\r\n"));
-
Instance->Log(DEBUG,"IN: %s", line.c_str());
this->Split(line.c_str(),params);