aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2015-02-27 01:25:12 +0100
committerGravatar Attila Molnar2015-02-27 01:25:12 +0100
commit8236f2c376e8a76662da2126b2a1c4c9f90f7716 (patch)
treeb94a603d30610b80052c13b9e8b926f0e8f7eafe /src/users.cpp
parentMerge pull request #916 from ShutterQuick/master+kickrejoinbound (diff)
downloadinspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.tar.gz
inspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.tar.bz2
inspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.zip
Fix oversights in substr() conversion
Thanks to @StevenVanAcker for reporting and testing this
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}