]> git.donarmstrong.com Git - infobot.git/commitdiff
no leading space
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 24 Feb 2005 22:31:11 +0000 (22:31 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 24 Feb 2005 22:31:11 +0000 (22:31 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1176 c11ca15a-4712-0410-83d8-924469b57eb5

blootbot/src/Modules/piglatin.pl

index 27830e0dcb5deb9f91342edb4c40067b2db1370d..07d17b8acbff06221789c82ff238bd4581a4cfc6 100644 (file)
@@ -29,7 +29,8 @@ sub piglatin
     } else {
       $pigword = $word . 'w' . $suffix;
     }
-    $piglatin .= " $pigword";
+    $piglatin .= ' ' if $piglatin;
+    $piglatin .= $pigword;
   }
   &::performStrictReply($piglatin||'failed');
 }