X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=9cfa723e228374b2ed47a5de1b842148b0013db8;hb=36d1e27085681388ea4989bdd62aad522ddf0dc6;hp=f7430b54d8f732dea1924ed22bba2d0df839a2bd;hpb=9c32b198f916bdf20fc051b86bba6092b105ca9e;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index f7430b5..9cfa723 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1685,9 +1685,20 @@ class Room $user_cur = $this->user[$i]; if ($target != "" && $user_cur->name != $target) continue; - if ($user_cur->sess == '' || $user_cur->stat == 'table' || $user->idx_get() == $i) + if ($user_cur->sess == '') continue; + + if ($user_cur->flags_vlt_get(USER_FLAG_MODER)) { + $user_cur->comm[$user_cur->step % COMM_N] .= sprintf('g_moder.add([%d, "%s", %d, "%s", "%s"]);' , + $curtime, "userid", + ($user->stat == 'table' ? $user->table : -1), + xcape($user->name), xcape($msg) ); + $user_cur->step_inc(); + } + if ($user_cur->stat == 'table' || $user->idx_get() == $i) + continue; + if ($is_normchat == TRUE) { // use MAP_AUTH to check if auth or isolation if ($user_cur->flags & USER_FLAG_MAP_AUTH) { @@ -1706,11 +1717,6 @@ class Room */ $user_cur->comm[$user_cur->step % COMM_N] = "gst.st = ".($user_cur->step+1)."; "; $user_cur->comm[$user_cur->step % COMM_N] .= $to_room; - - if ($user_cur->flags_vlt_get(USER_FLAG_MODER)) { - $user_cur->comm[$user_cur->step % COMM_N] .= sprintf('$$(moder_win, "mainbody").innerHTML += "%s
";' , - xcape($to_room) ); - } $user_cur->step_inc(); } }