Commit a1ed5b5d authored by mercury233's avatar mercury233

add memory 90% tip

parent cc1f556d
...@@ -228,12 +228,12 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -228,12 +228,12 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
else else
client.room.connect(client) client.room.connect(client)
######################################################################################################################
ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ygopro.stoc_follow 'JOIN_GAME', false, (buffer, info, client, server)->
#欢迎信息 #欢迎信息
if settings.modules.welcome if settings.modules.welcome
ygopro.stoc_send_chat client, settings.modules.welcome ygopro.stoc_send_chat client, settings.modules.welcome
if (os.freemem() / os.totalmem())>=0.9
ygopro.stoc_send_chat client, "服务器已经爆满,随时存在崩溃风险!"
if settings.modules.database if settings.modules.database
if _.startsWith(client.room.name, 'M#') if _.startsWith(client.room.name, 'M#')
User.findOne { name: client.name }, (err, user)-> User.findOne { name: client.name }, (err, user)->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment