1. 08 Apr, 2019 1 commit
  2. 07 Apr, 2019 3 commits
  3. 06 Apr, 2019 2 commits
    • Andrew Price's avatar
      Give onoff mwjs objects a timestamp · 3d5db0e9
      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);
      3d5db0e9
    • Andrew Price's avatar
      Logon/join/leave/logoff improvements · 3222e3af
      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.
      3222e3af
  4. 04 Apr, 2019 1 commit
  5. 01 Apr, 2019 3 commits
  6. 29 Mar, 2019 4 commits
  7. 28 Mar, 2019 3 commits
  8. 18 Feb, 2019 1 commit
  9. 17 Feb, 2019 2 commits
  10. 07 Dec, 2018 1 commit
  11. 06 Dec, 2018 2 commits
  12. 22 Nov, 2018 1 commit
  13. 19 Nov, 2018 2 commits
  14. 17 Nov, 2018 1 commit
  15. 16 Nov, 2018 2 commits
  16. 11 Nov, 2018 1 commit
  17. 10 Nov, 2018 3 commits
  18. 08 Nov, 2018 1 commit
    • Andrew Price's avatar
      Update to duktape 2.3.0 · 04d73cba
      Andrew Price authored
      Configured with
      
      -UDUK_USE_DUKTAPE_BUILTIN \
      -DDUK_USE_INTERRUPT_COUNTER \
      -DDUK_USE_EXEC_TIMEOUT_CHECK=check_exec_timeout
      04d73cba
  19. 06 Nov, 2018 4 commits
  20. 05 Nov, 2018 2 commits
    • Andrew Price's avatar
      js-duk: Implement exit events · b1196d3a
      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);
      b1196d3a
    • Andrew Price's avatar
      js-duk: Implement input events · 5b49d551
      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);
      5b49d551