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 07708da..5ea21fc 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;
     }