From a8185f2e0019e8a9b68f7b256f30cbed73f0e380 Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 23 Aug 2004 15:42:53 +0000 Subject: [PATCH] Please deliver me from my own incompetence... --- mod/chat/chatd.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mod/chat/chatd.php b/mod/chat/chatd.php index e1012531d0..f0e6dcd546 100755 --- a/mod/chat/chatd.php +++ b/mod/chat/chatd.php @@ -323,7 +323,7 @@ class ChatDaemon { socket_close($handle); } - function promote_final($sessionid, $groupid) { + function promote_final($sessionid, $groupid, $customdata) { if(isset($this->conn_sets[$sessionid])) { trace('Set cannot be finalized: Session '.$sessionid.' is already active'); return false; @@ -379,10 +379,10 @@ class ChatDaemon { 'userid' => $chatuser->userid, 'groupid' => $groupid, 'lang' => $lang, - 'quirks' => $this->conn_sets[$sessionid]['customdata']['quirks'] + 'quirks' => $customdata['quirks'] ); - trace('QUIRKS value for this connection is '.$this->conn_sets[$sessionid]['customdata']['quirks']); + trace('QUIRKS value for this connection is '.$customdata['quirks']); $this->dismiss_half($sessionid, false); chat_socket_write($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], $CHAT_HTMLHEAD_JS); @@ -446,7 +446,7 @@ class ChatDaemon { $this->conn_half[$sessionid][$type] = $handle; // Do the bookkeeping - $this->promote_final($sessionid, $groupid); + $this->promote_final($sessionid, $groupid, $customdata); // It's not an UFO anymore $this->dismiss_ufo($handle, false); @@ -558,7 +558,6 @@ class ChatDaemon { chat_socket_write($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], ''); } - // Testing for Safari if($info['quirks'] & QUIRK_CHUNK_UPDATE) { $output->html .= $GLOBALS['CHAT_DUMMY_DATA']; $output->html .= $GLOBALS['CHAT_DUMMY_DATA']; -- 2.39.5