You need to sign in or sign up before continuing.
- 01 Apr, 2019 1 commit
-
-
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 4 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
-
Andrew Price authored
-
- 05 Nov, 2018 3 commits
-
-
Andrew Price authored
Replaces bind(K_BIND_SHUTDOWN, ...) function handler(ev) { switch (ev.type) { ... case "exit": mrodder = ev.data; if (mrodder) mw.print("Your mw session was killed by " + mrodder); break; ... } } mw.onevent.push(handler); -
Andrew Price authored
Replaces bind(K_BIND_INPUT, ...). function handler(ev) { switch (ev.type) { ... case "input": line = ev.data; mw.print("You inputted: " + line); mw.say("⭐ " + line + "⭐ "); return false; // Suppress normal processing ... } } mw.onevent.push(handler); -
Andrew Price authored
-
- 04 Nov, 2018 3 commits
-
-
Andrew Price authored
This reverts commit 46e6dbdd. I guess gitlab is just bad at rst rendering.
-
Andrew Price authored
-
Andrew Price authored
-
- 03 Nov, 2018 2 commits
-
-
Andrew Price authored
Define a new command ,boop handled by boopCmd: function boopCmd(arg1, arg2, arg3) { mw.print("Arg 1: " + arg1); mw.print("Arg 2: " + arg2); mw.print("Arg 3: " + arg3); } mw.command.boop = boopCmd; -
Andrew Price authored
Required a lot of IPC_CHECKONOFF-related changes and tidy-ups. New js events handled like so: function handler(ev) { switch(ev.type) { case "mw_logon": d = ev.data; mw.print("d.user: " + d.user); mw.print("d.quiet: " + d.quiet); mw.print("d.autochat: " + d.autochat); break; case "mw_logoff": d = ev.data; mw.print("d.user: " + d.user); mw.print("d.method: " + d.method); mw.print("d.quiet: " + d.quiet); mw.print("d.reason: " + d.reason); mw.print("d.agent: " + d.agent); break; case "talker_join": d = ev.data; mw.print("d.user: " + d.user); mw.print("d.method: " + d.method); mw.print("d.quiet: " + d.quiet); mw.print("d.channel: " + d.channel); mw.print("d.agent: " + d.agent); break; case "talker_leave": d = ev.data; mw.print("d.user: " + d.user); mw.print("d.method: " + d.method); mw.print("d.quiet: " + d.quiet); mw.print("d.channel: " + d.channel); mw.print("d.agent: " + d.agent); mw.print("d.message: " + d.message); break; } } mw.onevent.push(handler); See src/server/PROTOCOL and src/onoff.h for hints on what those fields are.
-
- 17 Oct, 2018 3 commits
-
-
Andrew Price authored
Also clear eventin_list on .restart
-
Andrew Price authored
It's now defined as a function instead of a string because the username can change.
-
Andrew Price authored
Adds support for things like 'if ("foo" in mw.store) ...'
-