From e9934710e8e11f373ff4414fde5e56b339311d3a Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Thu, 27 Dec 2007 22:25:12 +1300 Subject: [PATCH] Fix appending of $@ to the error message if we fail to send a message to the Spong server. The previous version only appended a newline if $@ was set, not a newline and $@. --- src/lib/Spong/Status.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Spong/Status.pm b/src/lib/Spong/Status.pm index e34dd5e..8d52904 100755 --- a/src/lib/Spong/Status.pm +++ b/src/lib/Spong/Status.pm @@ -114,7 +114,7 @@ sub SendMsg { }; # If we got an error message, add it to $errmsg - if ($@) { $errmsg .= ($errmsg) ? "\n" : "" . $@; } + if ($@) { $errmsg .= ($errmsg ? "\n" : "") . $@; } } -- 2.30.2