Skip to content

Commit 52b96a6

Browse files
committed
Remove any comma before the word ‘due’ when creating actions.
Removed a TODO that was done. Added another TODO.
1 parent 7470a1b commit 52b96a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ghurlbot.pl

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# for how to run it and manual.html for the interaction on IRC.
66
#
77
#
8-
# TODO: Allow "repo:...", "repositories:..." (in addition to "gb,
9-
# use..."). This is the syntax of scribe.perl.
10-
#
118
# TODO: The map-file should contain the IRC network, not just the
129
# channel names.
1310
#
@@ -48,6 +45,9 @@
4845
# labels: "edit #7: A new title", "edit text #7: Text for the body",
4946
# "edit due #7: in two weeks", etc.
5047
#
48+
# TODO: handle_process_output() should use emote() instead of say()
49+
# when the output is in response to a /me (emoted) command.
50+
#
5151
# Created: 2022-01-11
5252
# Author: Bert Bos <[email protected]>
5353
#
@@ -616,6 +616,7 @@ ($$$$$$$$)
616616
} else {
617617
$date->parse("next week"); # Default to 1 week
618618
}
619+
$text =~ s/,$//; # Remove any final comma
619620

620621
# When a due date is in the past, adjust the year and print a warning.
621622
$today = new Date::Manip::Date;

0 commit comments

Comments
 (0)