aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-10-22 16:42:00 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-10-22 16:42:00 +1300
commitbfab948a3ec1784957cc760546c4c74ddbb9bd5d (patch)
tree1a17a1ddc9ac9e26c943f2a910647192df4793c1
parent186cb12c229522bc49940129c710d877c36548cc (diff)
downloadidalius-bfab948a3ec1784957cc760546c4c74ddbb9bd5d.tar.xz
Strip only trailing whitespace from commands
-rwxr-xr-xidalius.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idalius.pl b/idalius.pl
index eba7e42..1565bdb 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -217,7 +217,7 @@ sub handle_common {
my $channel = $where->[0];
my $output;
- $what =~ s/^\s+|\s+$//g;
+ $what =~ s/\s+$//g;
my $stripped_what = strip_color(strip_formatting($what));
my $no_prefix_what = $stripped_what;