From a2390fa651ed4d51d885b0f306ffceb8b3752a0c Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 31 Mar 2019 18:55:30 +1300 Subject: Convert: Don't append new lines to ret val --- Plugin/Convert.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Plugin/Convert.pm b/Plugin/Convert.pm index 8d21457..e5f37e1 100755 --- a/Plugin/Convert.pm +++ b/Plugin/Convert.pm @@ -52,20 +52,20 @@ sub convert { my $from = (split / to /, $rest)[0]; my $to = (split / to /, $rest)[1]; - return "Syntax: convert [to ]\n" unless ($from); + return "Syntax: convert [to ]" unless ($from); my $converted = convert_common($from, $to); - return "Define $from: $converted\n" unless $to; - return "Convert $from -> $to: $converted\n"; + return "Define $from: $converted" unless $to; + return "Convert $from -> $to: $converted"; } sub define { my ($self, $irc, $logger, $who, $where, $ided, $rest, $no_reenter, @arguments) = @_; - return "Syntax: define [unit/expression]\n" unless ($rest); + return "Syntax: define [unit/expression]" unless ($rest); my $defn = convert_common($rest, undef); - return "Define $rest: $defn\n"; + return "Define $rest: $defn"; } 1; -- cgit v1.1