mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
WebPaste: increase max width to 150 characters
This commit is contained in:
parent
62849c9cc4
commit
c4602bc295
@ -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);
|
||||||
|
@ -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 {}
|
||||||
|
Loading…
Reference in New Issue
Block a user