From: timriker Date: Thu, 1 Jul 2004 15:24:14 +0000 (+0000) Subject: word break X-Git-Url: https://git.donarmstrong.com/?p=infobot.git;a=commitdiff_plain;h=529e6b3af204d0af3ec283a6277daee7cda533ad word break git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@976 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index 8770225..ddc7fde 100644 --- a/src/IRC/Irc.pl +++ b/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);