Skip to content
Commit 3d5db0e9 authored by Andrew Price's avatar Andrew Price
Browse files

Give onoff mwjs objects a timestamp

function handler(ev)
{
	switch (ev.type) {
        case "mw_logon":
        case "mw_logoff":
        case "talker_join":
        case "talker_leave":
                onoff = ev.data;
		t = new Date(onoff.unixtime * 1000);
		mw.print("onoff event at: " + t);
		break;
	}
	return true;
}
mw.onevent.push(handler);
parent 3222e3af
Loading
Loading
Loading
Pipeline #558 passed with stage
in 7 minutes and 39 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment