Fix bug in @stats
authorAri Johnson <ari@theari.com>
Wed, 8 Nov 2017 05:10:11 +0000 (00:10 -0500)
committerAri Johnson <ari@theari.com>
Wed, 8 Nov 2017 05:10:11 +0000 (00:10 -0500)
src/wiz.c

index 07708daa1e7e5eb5b8ec72bbbc361ec3d25b9a69..5ea21fcf480b07135760d57c7eb2a3d6c34b1a2b 100644 (file)
--- a/src/wiz.c
+++ b/src/wiz.c
@@ -742,8 +742,8 @@ do_stats(dbref player, const char *name)
     notify_format(player, T("%s: No such player."), name);
     return;
   }
-  if (!CanSearch(player, owner)) {
-    if (owner != ANY_OWNER && owner != player) {
+  if (owner != ANY_OWNER && owner != player) {
+    if (!CanSearch(player, owner)) {
       notify(player, T("You need a search warrant to do that!"));
       return;
     }