projects
/
destult.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4d72d5
)
Trim whitespace
author
pdbogen
<pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 3 Mar 2009 04:03:17 +0000
(
04:03
+0000)
committer
pdbogen
<pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 3 Mar 2009 04:03:17 +0000
(
04:03
+0000)
git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@85
088b83a4
-0077-4247-935c-
42ec02c2848b
core.pl
patch
|
blob
|
history
diff --git
a/core.pl
b/core.pl
index
9fb45c4
..
2802e9b
100644
(file)
--- a/
core.pl
+++ b/
core.pl
@@
-132,6
+132,7
@@
sub cmd {
$what =~ s/^[~]//;
my( $cmd, $subj ) = ( split( / /, $what, 2 ) );
$subj = "" unless $subj;
+ $subj =~ s/(^\s+)|(\s+$)//g;
if( exists( $heap->{ 'ignored' }->{ uc( $who ) } ) ) {
print( "CORE:!<$who> $cmd -- $subj\n" ) unless( !exists $Destult::config{ 'DEBUG' } );
return;