From 8236f2c376e8a76662da2126b2a1c4c9f90f7716 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 27 Feb 2015 01:25:12 +0100 Subject: Fix oversights in substr() conversion Thanks to @StevenVanAcker for reporting and testing this --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 12243c64b..d760c713f 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -764,7 +764,7 @@ void LocalUser::Write(const std::string& text) if (text.length() > ServerInstance->Config->Limits.MaxLine - 2) { // this should happen rarely or never. Crop the string at 512 and try again. - std::string try_again(0, ServerInstance->Config->Limits.MaxLine - 2); + std::string try_again(text, 0, ServerInstance->Config->Limits.MaxLine - 2); Write(try_again); return; } -- cgit v1.3.1-10-gc9f91