srecord noeq GazellePresenceListener(StefansOS_ConnectToServer connector) { new VarWithNotify userCount; settable bool verbose; void init { connector.onNewLine(line -> { new Matches m; if (swic(line, "gazellePresence:", m)) { userCount.set(parseInt(m.rest())); if (verbose) print("Gazelle presence count: " + get()); } }); connector.sub("gazellePresence"); }; Int get() { ret userCount!; } }