- 09 Apr, 2019 1 commit
-
-
Andrew Price authored
Assign a timestamp to messages on creation and apply a timestamp to each incoming message as we don't trust the client's timestamp anyway. This avoids playing whack-a-mole trying to propagate the correct timestamp in different situations. Fixes #33
-
- 08 Apr, 2019 3 commits
-
-
Andrew Price authored
Makes sure multibyte chars aren't truncated.
-
Andrew Price authored
Fixes #41
-
Andrew Price authored
-
- 07 Apr, 2019 3 commits
-
-
Andrew Price authored
Just a quick fix until all the mwscript event handler stuff is mucked out.
-
Andrew Price authored
-
Andrew Price authored
(Or anything that isn't .mwrc or a .js file)
-
- 06 Apr, 2019 2 commits
-
-
Andrew Price authored
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); -
Andrew Price authored
Don't send separate messages to announce these events, have mw display them on receipt of onoff events, if scripted handlers allow it to.
-
- 04 Apr, 2019 1 commit
-
-
Alice Mitchell authored
-
- 01 Apr, 2019 3 commits
-
-
Alice Mitchell authored
-
Alice Mitchell authored
-
Alice Mitchell authored
-
- 29 Mar, 2019 4 commits
-
-
Alice Mitchell authored
-
Alice Mitchell authored
If we dont alter the output string until we have a valid escape sequence then we dont accidentally forget the current acting colour when bad sequences are found
-
Alice Mitchell authored
-
Alice Mitchell authored
-
- 28 Mar, 2019 3 commits
-
-
Alice Mitchell authored
implements #38
-
Alice Mitchell authored
-
Andrew Price authored
-
- 18 Feb, 2019 1 commit
-
-
Andrew Price authored
Also fix and simplify the implementation of mw.command Fixes #34
-
- 17 Feb, 2019 2 commits
-
-
Andrew Price authored
Fixes #36
-
Andrew Price authored
Fixes #33
-
- 07 Dec, 2018 1 commit
-
-
Andrew Price authored
-
- 06 Dec, 2018 2 commits
-
-
Andrew Price authored
Seems a bit pointless. Also this is a portability improvement since it doesn't work on *BSD.
-
Andrew Price authored
Rearrange the order of the questions new users are asked, use more welcoming words and separate out the data protection statement into a config file (/etc/mw/data_usage.txt by default).
-
- 22 Nov, 2018 1 commit
-
-
Andrew Price authored
Should make it simpler to move logging into the server.
-
- 19 Nov, 2018 2 commits
-
-
Imran Hussain authored
-
Andrew Price authored
Apparently this is required since readline 6.3
-
- 17 Nov, 2018 1 commit
-
-
(cherry picked from commit 711804a7)
-
- 16 Nov, 2018 2 commits
-
-
Andrew Price authored
function handler(ev) { switch (ev.type) { case "message_received": msg = ev.data; ... mw.print("msg.channel.id: " + msg.channel.id); mw.print("msg.channel.name: " + msg.channel.name); mw.print("msg.channel.topic: " + msg.channel.topic); mw.print("msg.channel.soundproof: " + msg.channel.soundproof); ... } mw.onevent.push(handler); -
Imran Hussain authored
-
- 11 Nov, 2018 1 commit
-
-
Andrew Price authored
Untested.
-
- 10 Nov, 2018 3 commits
-
-
Andrew Price authored
-
Andrew Price authored
-
Andrew Price authored
-
- 08 Nov, 2018 1 commit
-
-
Andrew Price authored
Configured with -UDUK_USE_DUKTAPE_BUILTIN \ -DDUK_USE_INTERRUPT_COUNTER \ -DDUK_USE_EXEC_TIMEOUT_CHECK=check_exec_timeout
-
- 06 Nov, 2018 3 commits
-
-
Andrew Price authored
Turns out msg->bodylen doesn't include the '\0'. Luckily the json parser doesn't go further than the first character after the outer '}'.
-
Andrew Price authored
Lots of constification needed to make sure pointers into the allocated memory aren't freed.
-
Andrew Price authored
-