mirror of
https://github.com/webmin/webmin.git
synced 2026-09-19 12:00:46 +01:00
Check for correct reply
This commit is contained in:
@@ -21,7 +21,7 @@ if ($type eq "minecraft_up") {
|
||||
'desc' => $text{'monitor_down'} };
|
||||
}
|
||||
my $out = &execute_minecraft_command("/seed", 0, 5);
|
||||
if ($out !~ /^\d+/) {
|
||||
if ($out !~ /Seed:\s+[0-9\-]+/i) {
|
||||
return { 'up' => 0,
|
||||
'desc' => $text{'monitor_noreply'} };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user