mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix some minor bugs in EscapeTag/UnescapeTag.
This commit is contained in:
parent
a5503a9f5e
commit
6d956cbed6
@ -80,7 +80,7 @@ std::string ClientProtocol::Message::EscapeTag(const std::string& value)
|
||||
ret.append("\\s");
|
||||
break;
|
||||
case ';':
|
||||
ret.append("\\;");
|
||||
ret.append("\\:");
|
||||
break;
|
||||
case '\\':
|
||||
ret.append("\\\\");
|
||||
@ -113,8 +113,9 @@ std::string ClientProtocol::Message::UnescapeTag(const std::string& value)
|
||||
}
|
||||
|
||||
it++;
|
||||
if (it != value.end())
|
||||
{
|
||||
if (it == value.end())
|
||||
break;
|
||||
|
||||
chr = *it;
|
||||
switch (chr)
|
||||
{
|
||||
@ -138,11 +139,9 @@ std::string ClientProtocol::Message::UnescapeTag(const std::string& value)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
const ClientProtocol::SerializedMessage& ClientProtocol::Message::GetSerialized(const SerializedInfo& serializeinfo) const
|
||||
{
|
||||
// First check if the serialized line they're asking for is in the cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user