projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a60e82
)
Quirks-related fixes...
author
defacer
<defacer>
Mon, 23 Aug 2004 15:35:08 +0000
(15:35 +0000)
committer
defacer
<defacer>
Mon, 23 Aug 2004 15:35:08 +0000
(15:35 +0000)
mod/chat/chatd.php
patch
|
blob
|
history
diff --git
a/mod/chat/chatd.php
b/mod/chat/chatd.php
index 3ac0cbb0fbaab3267a871b9d4be39b9d3fb6ee66..e1012531d07fc6e04f1a3ab4dbc6da2e80ca493a 100755
(executable)
--- 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':