]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Made ignoreservers work for unreal
[irc/gameservirc.git] / gameserv / gameserv.cpp
index 0e77f861f777748461c4e80f0eee67a2610322ae..1929a2f170fbf303077a435d1d5a3cab11f8959c 100644 (file)
@@ -3012,6 +3012,8 @@ void timeOutEvent(Player *p)
     }
     else if (!player_fight(user))
     {
+      if (isAlive(user) && user->stats->gold > 0)
+      {
        // Place fun stuff here :)
        int randnum = 1 + rand() % 100; // 1-100
        #define GSN(s) notice(s_GameServ, nick, s)
@@ -3050,7 +3052,7 @@ void timeOutEvent(Player *p)
            GSN2("They stole %d gold from you!", stolen);
            user->stats->gold -= stolen;
        }
-
+      }
 
        // Always log out the user
        logout(user);