diff options
Diffstat (limited to 'tgsend')
-rwxr-xr-x | tgsend | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -50,7 +50,7 @@ $text =~ s/^\s+|\s+$//g; # Trim input # Send message to chats (or pretend to) if ($PRETEND) { $logger->info("(prentend) Sending to $_: '$text'\n") foreach @ARGV; -} else { +} elsif (length $text > 0) { my $api = TgLib::Api->new($TOKEN, $logger); $api->send_message($_, $text) foreach @ARGV; } |