From fd58beec6b90d7aeef227784a8ffd4eef90d2999 Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 1 Jul 2004 15:24:14 +0000 Subject: [PATCH] word break git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@976 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/IRC/Irc.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blootbot/src/IRC/Irc.pl b/blootbot/src/IRC/Irc.pl index 8770225..ddc7fde 100644 --- a/blootbot/src/IRC/Irc.pl +++ b/blootbot/src/IRC/Irc.pl @@ -350,7 +350,8 @@ sub performReply { # FIXME need real throttling.... if (length($reply) > $maxlinelen - 30) { - $reply = substr($reply, 0, $maxlinelen - 33) . "..."; + $reply = substr($reply, 0, $maxlinelen - 33); + $reply =~ s/ [^ ]*?$/ .../; } &checkMsgType($reply); @@ -396,7 +397,8 @@ sub performStrictReply { # FIXME need real throttling.... if (length($reply) > $maxlinelen - 30) { - $reply = substr($reply, 0, $maxlinelen - 33) . "..."; + $reply = substr($reply, 0, $maxlinelen - 33); + $reply =~ s/ [^ ]*?$/ .../; } &checkMsgType($reply); -- 2.39.5