3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

WebPaste: increase max width to 150 characters

This commit is contained in:
Pragmatic Software 2022-08-07 19:05:43 -07:00
parent 62849c9cc4
commit c4602bc295
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ sub paste {
%opts = (%default_opts, %opts); %opts = (%default_opts, %opts);
# word-wrap text unless no_split is set # word-wrap text unless no_split is set
$text =~ s/(.{120})\s/$1\n/g unless $opts{no_split}; $text =~ s/(.{150})\s/$1\n/g unless $opts{no_split};
# encode paste to utf8 # encode paste to utf8
$text = encode('UTF-8', $text); $text = encode('UTF-8', $text);

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script # These are set by the /misc/update_version script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 4564, BUILD_REVISION => 4565,
BUILD_DATE => "2022-08-03", BUILD_DATE => "2022-08-07",
}; };
sub initialize {} sub initialize {}