Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
stargo committed Jan 6, 2018
1 parent c18b446 commit c4224d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram.pl
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ ($;$)
$last_target = $chan;
$last_server = $srv;
} else {
print "no server known for channel '$chan'";
telegram_send_message($user, "no server known for channel '$chan'");
print "no server known for ".(($chan =~ m/^#/)?"channel":"nick")." '$chan'" if ($debug);
telegram_send_message($user, "no server known for ".(($chan =~ m/^#/)?"channel":"nick")." '$chan'");
}
} else {
# post in last channel
Expand Down

0 comments on commit c4224d6

Please sign in to comment.