summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c252e51d7..0abe0b66e 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -347,8 +347,8 @@ namespace
{
void SendMessageInternal(BotInfo *source, User *target, const Anope::string &msg, const Anope::map<Anope::string> &tags)
{
- TextSplitter ts(Language::Translate(target, msg.c_str()));
- for (Anope::string line; ts.GetLine(line); )
+ LineWrapper lw(Language::Translate(target, msg.c_str()));
+ for (Anope::string line; lw.GetLine(line); )
{
if (target->ShouldPrivmsg())
IRCD->SendPrivmsg(source, target->GetUID(), line, tags);