Commit Diff
Diff:
3e3377c95495183dfd3f82910f07f7d403f93cb5
cc6d0d31189840b0f91ce27a2ec8c54dc6dde232
Commit:
cc6d0d31189840b0f91ce27a2ec8c54dc6dde232
Tree:
471f9eb389383ca3c3b45963f3752ce34ff02865
Author:
jrmu <jrmu@lecturify.com>
Committer:
jrmu <jrmu@lecturify.com>
Date:
Mon Sep 21 12:29:42 2020 UTC
Message:
Improve error message when not admin
blob - 2b2475ddb7d25b027965311b81971516acb3c532
blob + 1d817767f895ed4ab0f36665dd90d3fa49a72024
--- botnow.pl
+++ botnow.pl
@@ -695,7 +695,7 @@ EOF
print "$2 now connecting to $1...\r\n";
} elsif ($reply =~ /^Admin = false/) {
sendteam("", "Error: $nick is not admin");
- die;
+ die "Error: $nick is not admin";
} elsif ($reply =~ /^Admin = true/) {
if ($verbose >= 3) { print "$nick is ZNC admin\n"; }
} elsif ($reply =~ /(.*) = (.*)/) {