]> jfr.im git - irc/gameservirc.git/commitdiff
Fixed a bug with RUN, where if a user was not logged in (playing), the
authorwcampbel <redacted>
Thu, 1 Apr 2004 19:39:04 +0000 (19:39 +0000)
committerwcampbel <redacted>
Thu, 1 Apr 2004 19:39:04 +0000 (19:39 +0000)
service would core.

git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@135 bc333340-6410-0410-a689-9d09f3c113fa

gameserv/Changes
gameserv/gameserv.cpp

index b8d0a8db049d289eefcee479d08f30fa2b6115ae..cfe23dfab5fbd8d9ace2f4481598d8f8c5c51212 100644 (file)
@@ -1,4 +1,5 @@
 Version 1.1.9
+* Fixed a core in RUN if a client wasn't playing. - wcampbel
 * Added an option to specify the PID file in the config file. - kain
 Version 1.1.8
 * Missing directives now are identified for config files upon startup - kain
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)