0
点赞
收藏
分享

微信扫一扫

如何判断用户是否非正常离开聊天室?

芭芭蘑菇 2022-03-12 阅读 16

如何判断用户是否非正常离开聊天室?

total = application("AllPeople")

' 聊天总人数.

aryHuman = split(total,";")
for i = lbound(aryHuman) to ubound(aryHuman) - 1
if application("user" & i) = "online" then
if int(timer) - int(application("TimeBegin" & i)) > 120 then
application("user" & i) = ""
temp = aryHuman(i)
aryName = split(temp,",")
hrefname = aryName(0)
for j = lbound(aryHuman) to ubound(aryHuman) - 1
if application("user" & j) = "online" then
application("content" & j) = "<FONT color=#000000>〖精彩春风之聊天室的系统公告〗"&hrefname&"</FONT>" &"<font color=#F08000 >"& "掉线了..." & "</font><font color = #000000 class=p9>" & " <" & time() & "></font><br>" & application
("content" & j)
end if
next
end if
end if
next

您可能感兴趣的文章:

举报

相关推荐

socket 聊天室

UDP聊天室

go聊天室

NIO案例-聊天室

聊天室 php ChatApi

0 条评论