diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-22 18:41:30 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-22 18:41:30 +0100 |
commit | 55ad0595a714dcf07e94fe2fafc790c0be7a85a1 (patch) | |
tree | 28fb87b7fd382f8d29867090fca0ace3b3b33d33 /src | |
parent | e33e8bcdf8fd3e40eba6a41b43dbc48f973efb11 (diff) |
Remove now unused overload of User::SendText()
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/users.cpp b/src/users.cpp index db5f8a74d..12fb902fb 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -947,23 +947,6 @@ void User::SendText(const char *text, ...) SendText(line); } -void User::SendText(const std::string& linePrefix, std::stringstream& textStream) -{ - std::string line; - std::string word; - while (textStream >> word) - { - size_t lineLength = linePrefix.length() + line.length() + word.length() + 3; // "\s\n\r" - if (lineLength > ServerInstance->Config->Limits.MaxLine) - { - SendText(linePrefix + line); - line.clear(); - } - line += " " + word; - } - SendText(linePrefix + line); -} - void User::WriteRemoteNumeric(const Numeric::Numeric& numeric) { const std::string& servername = (numeric.GetServer() ? numeric.GetServer()->GetName() : ServerInstance->Config->ServerName); |