Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sympa
sympa
Commits
b4e160b3
Commit
b4e160b3
authored
Nov 07, 2019
by
IKEDA Soji
Browse files
typos.
parent
a601f11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Scenario.pm
View file @
b4e160b3
...
...
@@ -846,7 +846,6 @@ sub _compile_condition_term {
# Getting rid of spaces.
$condition_key
=~
s/^\s*//g
;
$condition_key
=~
s/\s*$//g
;
my
$func
=
"
Sympa::Scenario::do_
$condition_key
";
if
(
$condition_key
=~
/^(true|all)$/i
)
{
# condition that require 0 argument
...
...
@@ -876,8 +875,8 @@ sub _compile_condition_term {
return
undef
;
}
# We could search in the family if we got ref on Sympa::Family object.
return
sprintf
'
Sympa::Scenario::do_search($that,
%s,
$context)
',
join
'
,
',
@args
;
return
sprintf
'
Sympa::Scenario::do_search($that,
$context
, %s
)
',
join
'
,
',
@args
;
}
elsif
(
$condition_key
=~
# condition that require 2 args
...
...
@@ -908,7 +907,8 @@ sub _compile_condition_term {
return
undef
;
}
return
sprintf
'
%s(
\'
%s
\'
, %s)
',
$func
,
$condition_key
,
join
'
,
',
@args
;
return
sprintf
'
Sympa::Scenario::do_%s($that,
\'
%s
\'
, %s)
',
$condition_key
,
$condition_key
,
join
'
,
',
@args
;
}
sub
_compile_hashref
{
...
...
@@ -1182,8 +1182,8 @@ sub do_less_than {
sub
do_search
{
$log
->
syslog
('
debug2
',
'
(%s, %s, %s)
',
@
_
);
my
$that
=
shift
;
# List, Family or Robot
my
$filter_file
=
shift
;
my
$context
=
shift
;
my
$filter_file
=
shift
;
my
$sender
=
$context
->
{'
sender
'};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment