mirror of
https://github.com/pragma-/pbot.git
synced 2026-02-21 00:38:00 +01:00
Plugin/FuncSed + UrlTitles: minor tweaks
This commit is contained in:
parent
2424bb9fec
commit
6292e49d02
@ -31,7 +31,7 @@ sub func_sed($self, @rest) {
|
||||
my $text = "@rest";
|
||||
|
||||
my $result = eval {
|
||||
if ($text =~ /^s(.)(.*?)(?<!\\)\1(.*?)(?<!\\)\1(\S*)\s(.*)/p) {
|
||||
if ($text =~ /^s(.)((?:\\.|(?!\1).)*)\1((?:\\.|(?!\1).)*)\1(\S*)\s(.*)/) {
|
||||
my ($a, $r, $g, $m, $t) = ($5, "'\"$3\"'", index($4, "g") != -1, $4, $2);
|
||||
|
||||
#print "a: $a, r: $r, g: $g, m: $m, t: $t\n";
|
||||
|
||||
@ -116,6 +116,7 @@ sub is_ignored_url($self, $url) {
|
||||
}
|
||||
|
||||
sub is_ignored_title($self, $title) {
|
||||
return 1 if $title =~ m/making sure you're not a bot/i;
|
||||
return 1 if $title =~ m{reddit - dive into anything}i;
|
||||
return 1 if $title =~ m{dive into reddit}i;
|
||||
return 1 if $title =~ m{^Loading}i;
|
||||
|
||||
@ -25,7 +25,7 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4937,
|
||||
BUILD_REVISION => 4938,
|
||||
BUILD_DATE => "2026-02-19",
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user