]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Fixed a bug with RUN, where if a user was not logged in (playing), the
[irc/gameservirc.git] / gameserv / gameserv.cpp
index fe88ad2c3701411e34fc27c84cfece4f068e7f35..e0a9b6680468759bb4bdac7e98166c470fec1a5f 100644 (file)
@@ -1131,6 +1131,12 @@ void do_run(char *u)
        return;
     }
 
+    else if (!is_playing(user))
+    {
+        notice(s_GameServ, u, "You must be playing to use items!");
+        return;
+    }
+
     p = user->stats;
 
     if (p->battle)