/*
* Room functions
*
- * Copyright (c) 1996-2018 by the citadel.org team
+ * Copyright (c) 1996-2019 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
JsonObjectAppend(jr, NewJsonPlainString(HKEY("name"), roomname, -1));
int ra = extract_int(buf, 5);
- JsonObjectAppend(jr, NewJsonBool(HKEY("known"), (ra && UA_KNOWN)));
- JsonObjectAppend(jr, NewJsonBool(HKEY("hasnewmsgs"), (ra && UA_HASNEWMSGS)));
+ JsonObjectAppend(jr, NewJsonBool(HKEY("known"), (ra & UA_KNOWN)));
+ JsonObjectAppend(jr, NewJsonBool(HKEY("hasnewmsgs"), (ra & UA_HASNEWMSGS)));
int floor = extract_int(buf, 2);
JsonObjectAppend(jr, NewJsonNumber(HKEY("floor"), floor));