[Bps-public-commit] smokingit branch, anna, updated. ccff3eec9081df46b3380b3897b7c0ea80d42f80

Alex Vandiver alexmv at bestpractical.com
Fri Jun 28 17:20:51 EDT 2013


The branch, anna has been updated
       via  ccff3eec9081df46b3380b3897b7c0ea80d42f80 (commit)
      from  0d535c2b3990fed4273ab5d66dc1866e05a07db2 (commit)

Summary of changes:
 lib/Smokingit/IRC.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit ccff3eec9081df46b3380b3897b7c0ea80d42f80
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Jun 28 17:19:33 2013 -0400

    Strip leading and trailing whitespace from branch name

diff --git a/lib/Smokingit/IRC.pm b/lib/Smokingit/IRC.pm
index 3b1c17d..e25fcdf 100644
--- a/lib/Smokingit/IRC.pm
+++ b/lib/Smokingit/IRC.pm
@@ -181,7 +181,8 @@ sub do_sync {
     my $self = shift;
     my ($incoming, $what) = @_;
 
-    if ($what) {
+    if (defined $what and $what =~ /^\s*(.*?)\s*$/) {
+        $what = $1;
         my $project = Smokingit::Model::Project->new;
         $project->load_by_cols( name => $what );
         if (not $project->id) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list