From 695a4bff46bb69ef59dbf353667bbf80769d86de Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 23 Aug 2004 15:35:08 +0000 Subject: [PATCH] Quirks-related fixes... --- mod/chat/chatd.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mod/chat/chatd.php b/mod/chat/chatd.php index 3ac0cbb0fb..e1012531d0 100755 --- a/mod/chat/chatd.php +++ b/mod/chat/chatd.php @@ -783,12 +783,10 @@ while(true) { switch($type) { case 'chat': $type = CHAT_CONNECTION_CHANNEL; - if(!ereg('Safari', $data)) { + $customdata['quirks'] = 0; + if(strpos($data, 'Safari')) { trace('Safari identified...', E_USER_WARNING); - $customdata['quirks'] = QUIRK_CHUNK_UPDATE; - } - else { - $customdata['quirks'] = 0; + $customdata['quirks'] += QUIRK_CHUNK_UPDATE; } break; case 'users': -- 2.39.5