3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-02 08:59:26 +01:00

FactoidCommands: disable word-wrapping for show -p

This commit is contained in:
Pragmatic Software 2019-08-06 18:23:37 -07:00
parent e30943ff70
commit c953962bd4

View File

@ -1170,7 +1170,7 @@ sub factshow {
my $result = "$trigger_text: "; my $result = "$trigger_text: ";
if ($paste) { if ($paste) {
$result .= $self->{pbot}->{webpaste}->paste($factoids->{$channel}->{$trigger}->{action}); $result .= $self->{pbot}->{webpaste}->paste($factoids->{$channel}->{$trigger}->{action}, no_split => 1);
$channel = 'global' if $channel eq '.*'; $channel = 'global' if $channel eq '.*';
$chan = 'global' if $chan eq '.*'; $chan = 'global' if $chan eq '.*';
$result = "[$channel] $result" if $channel ne $chan; $result = "[$channel] $result" if $channel ne $chan;