Skip to content
Snippets Groups Projects
  1. Jan 24, 2021
    • Rob Swindell's avatar
      !include modopts.d/*.ini by default · ad73fb3f
      Rob Swindell authored
      Updated comment block as well, fixing typos and providing a better description and example usage.
      ad73fb3f
    • Rob Swindell's avatar
      More support for !include in .ini files · 2ff1a3b5
      Rob Swindell authored
      Some (important) File methods did not support .ini files that used the !include directive because they were using the xpdev iniRead* API (which performs no "pre-processing") instead of xpdev iniGet*.
      
      Impacted methods:
      - iniGetValue()
      - iniGetKeys()
      - iniGetObject()
      
      The other existing ini* methods already worked fine with nested (!include'd) .ini files. It's possible there's a slight performance penalty with the new implementation since the entire .ini file is always read for each operation and previously it was possible that only a few "lines" were read to find the key(s) of interest. However, since .ini files are not typically huge and the iniRead/file-stream method likely read large (e.g. 8-32K) blocks anyway (which is usually the entire .ini file) - I don't actually suspect any observable impact to performance.
      
      This change was needed for the new ctrl/modopts.d support.
      
      Added new method useful for debugging nested .ini files:
      - iniReadAll()
      2ff1a3b5
    • Rob Swindell's avatar
      Support !include wildcard-pattern · e636a3a4
      Rob Swindell authored
      This allows auto-inclusion of sub-directories of config files (e.g. !include modopts.d/*.ini). This, along with the next commit to js_file.c, allows module authors (or sysops) to keep their module-specific settings in a module-specific file (rather than always merging-with/managing the monolithic/shared modopts.ini). The [modname] section heading is still required in the included .ini file.
      
      Replaced use of non-thread-safe STRERROR() with safe_strerror().
      e636a3a4
    • Deucе's avatar
      Ah, an extra line! · 55271814
      Deucе authored
      55271814
    • Deucе's avatar
      No newline is fine... · eafc1d18
      Deucе authored
      eafc1d18
    • Deucе's avatar
      Forgot that space. · 282d84a6
      Deucе authored
      282d84a6
    • Deucе's avatar
      Oh, so much patch. · 9d4020fe
      Deucе authored
      9d4020fe
    • Deucе's avatar
      Don't use safe stack. · 4db5065e
      Deucе authored
      4db5065e
    • Rob Swindell's avatar
    • Rob Swindell's avatar
      Merge branch '206-SlyEdit-NUL-timeout' · 6b8c45d3
      Rob Swindell authored
      6b8c45d3
    • Eric Oulashin's avatar
      [Issue 206] When using SlyEdit CTRL-Space on a MAC sends a 0x0 NUL character... · de6ceb32
      Eric Oulashin authored
      [Issue 206] When using SlyEdit CTRL-Space on a MAC sends a 0x0 NUL character causing execution in the timeout logic
      
      With the addition of K_NUL (dd7df94b), this patch changes SlyEdit so that it no longer thinks a 0x0 is a timeout
      de6ceb32
    • Rob Swindell's avatar
      New load lib to calculate disk usage in a specified directory (w/pattern) · 20984fc4
      Rob Swindell authored
      Use like this:
      var diskusage = load({}, "diskusage.js");
      print(diskusage.get("/*.txt"));
      20984fc4
    • Rob Swindell's avatar
      JS module command-lines now supported quoted arguments (w/white-space) · fb2ad7dd
      Rob Swindell authored
      Example:
      Command-line: ?showargs   " a b c "d "e f"
      argc = 3
      argv[0] = ' a b c '
      argv[1] = 'd'
      argv[2] = 'e f'   
      
      This resolves a long-standing TODO comment.
      
      Also, fixed a problem where multiple spaces between the module name and the first argument would result in argv[0] being set to an empty string.
      fb2ad7dd
    • Rob Swindell's avatar
      Performance enhancement for system.findstr() · 8fd71027
      Rob Swindell authored
      The first argument can now optionally be an array of strings (e.g. as read from File.readAll()), so that multiple searches of the same file (e.g. twitlist.cfg, while importing messages) does not require multiple *reads* of the same file.
      8fd71027
  2. Jan 23, 2021
  3. Jan 22, 2021
  4. Jan 21, 2021
    • Rob Swindell's avatar
      Fix new GCC warning about return type. · 40ccdbb4
      Rob Swindell authored
      40ccdbb4
    • Rob Swindell's avatar
      Fix: initialize default data directories after auto-creating sub-dirs · 670acd23
      Rob Swindell authored
      When a file library's "Access to Sub-directories" option was enabled, any auto-created directories would have their data dir initialized as "blank" (empty), so their data files (e.g. <code>.dat, <code>.ixb) would be created in the ctrl directory.
      
      I guess nobody used this feature? It is pretty cool, but not really documented. If you were using it before this commit, you'll need to move your sub-directories data files to data/dirs or re-add the files (recreate the database files). And you can remove the old cruft from the ctrl dir.
      670acd23
    • Rob Swindell's avatar
      Support single-part MIME-encoded messages in SMBLIB · e9f56e5d
      Rob Swindell authored
      This involved the removal of the content-transfer-decoding feature of the SMTP mail server since we need single-part MIME-attached file contents to be stored in their original encoded form (e.g. base64-encoded) and not in binary, for the message body text (where NULs aren't allowed, CR/LF is appended, etc).
      
      I accidentally made this change to smbtxt.c in the new_file_base branch and then copied over here, so there's some unrelated innocuous changes (comment header, removal of SMBCALL) that hopefully won't cause a merge conflict later.
      
      I don't actually receive single-part MIME attached files, so depending on others (e.g. Nelgin and Dream Master) to test for me.
      e9f56e5d
    • Rob Swindell's avatar
      Clean-up MIME-Decoded plain-text format message · 08ae8875
      Rob Swindell authored
      Don't display at all if smb_getplaintext() returns a blank string.
      Don't display "(null)" if there's no text sub-type.
      08ae8875
  5. Jan 20, 2021
  6. Jan 19, 2021
  7. Jan 18, 2021
Loading