diff options
| author | 2007-08-23 18:06:26 +0000 | |
|---|---|---|
| committer | 2007-08-23 18:06:26 +0000 | |
| commit | deb85740798d3438563628736c0e83edb6966b6e (patch) | |
| tree | a8ad119fa9d1624a174cded210aba05a1af36173 /src/modules/m_http_client.cpp | |
| parent | Fix for irc::sepstream for when there are multiple seperators in a row, do no... (diff) | |
| download | inspircd++-deb85740798d3438563628736c0e83edb6966b6e.tar.gz inspircd++-deb85740798d3438563628736c0e83edb6966b6e.tar.bz2 inspircd++-deb85740798d3438563628736c0e83edb6966b6e.zip | |
Add some stuff to change how we process a token sepeperated stream
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7800 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_http_client.cpp')
| -rw-r--r-- | src/modules/m_http_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index aa97242e0..a2f80687f 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -176,10 +176,10 @@ bool HTTPSocket::ParseURL(const std::string &iurl) for (int p = 0;; p++) { - std::string part = tokenizer.GetToken(); - if (part.empty() && tokenizer.StreamEnd()) + std::string part; + if (!tokenizer.GetToken(part)) break; - + if ((p == 0) && (part[part.length() - 1] == ':')) { // Protocol ('http:') |
