projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* ctdlprotocol.php: known room list fetch now sets subscript "hasnewmsgs"
[citadel.git]
/
ctdlphp
/
ctdlprotocol.php
diff --git
a/ctdlphp/ctdlprotocol.php
b/ctdlphp/ctdlprotocol.php
index 0463ad5125e8accb647755c79e0ba2b855889936..a15686f3529ed4b6718579e610ea10a8620e4c20 100644
(file)
--- a/
ctdlphp/ctdlprotocol.php
+++ b/
ctdlphp/ctdlprotocol.php
@@
-269,6
+269,13
@@
function ctdl_knrooms() {
$tok = strtok("|");
if ($tok) $thisline["access"] = $tok;
+ if ($thisline["access"] & 8) {
+ $thisline["hasnewmsgs"] = TRUE;
+ }
+ else {
+ $thisline["hasnewmsgs"] = FALSE;
+ }
+
$num_lines = array_push($all_lines, $thisline);
}