From 4ede370aea08810dd2ea1d825c64655685ea91b3 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 4 May 2013 11:36:26 -0700 Subject: [PATCH] Check for correct reply --- minecraft/status_monitor.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/status_monitor.pl b/minecraft/status_monitor.pl index 3658ea83b..d2527676d 100755 --- a/minecraft/status_monitor.pl +++ b/minecraft/status_monitor.pl @@ -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'} }; }