Skip to content
Snippets Groups Projects
  1. Apr 19, 2021
  2. Apr 18, 2021
  3. Apr 17, 2021
  4. Apr 16, 2021
  5. Apr 15, 2021
  6. Apr 14, 2021
    • Rob Swindell's avatar
      Refactor putuserrec() · ba418fdb
      Rob Swindell authored
      This started with a Coverity issue (CID 33230) which got me looking at this function and wondering: why is str2 being NUL-terminated here? Why is the length of str2 to be calculated on successive lines? What is with this (long)((long)((long)((long)) typecast?
      
      This was some of the oldest code in Synchronet (along with a lot of the other functions in this file). I tried to keep as much intact as possible while still improving the logic and readability.
      ba418fdb
    • Rob Swindell's avatar
      Add/use P_REMOTE print-mode flag to bputs() · 3873a36c
      Rob Swindell authored
      Do nothing if online != ON_REMOTE. Eliminates some if(online == ON_REMOTE) clauses.
      3873a36c
    • Rob Swindell's avatar
      Debug the "thread_back field missing" error · dbed82c6
      Rob Swindell authored
      Some QWKnet vote messages are failing:
      evnt unpackREP <ENSEMBLE> !ERROR 2 (No such file or directory) in qwk.cpp line 1146 (qwk_vote) writing "/sbbs/data/subs/dove-gen" access=-105 info=smb_addvote thread_back field missing
      
      Catch this problem a little higher up (in votemsg()) and log the message's reply-IDs to help determine what's the root-cause here. Don't bother calling smb_addvote() if thread_back is 0.
      dbed82c6
  7. Apr 13, 2021
    • Deucе's avatar
      Delete one-shot events before running the callback. · 06ec7d41
      Deucе authored
      If a callback deletes the one-shot event that invoked it, the
      event pointer in the caller would be to free()d memory with
      hilarious results.
      06ec7d41
    • echicken's avatar
      Hack the planet. · 1184114d
      echicken authored
      1184114d
    • echicken's avatar
      Serves "presence" data about local and remote users. · 0ecaf3db
      echicken authored
      Upon connecting, a client will be sent a list of who's online on
      the local BBS as well as other systems (if you and they are set
      up for instant messaging). Updates will be sent for subsequent
      events (logon, update, logoff).
      
      Mostly intended for use by local consumers; you probably don't
      need to open any ports for this.
      
      Nothing uses this at the moment and you do not need to add it
      to your config. Eventually it'll bring interBBS presence and
      messaging back to webv4 and probably introduce a fancier textmode
      imsg module.
      0ecaf3db
Loading