• src/smblib/smbadd.c smbdefs.h smblib.c smblib.h

    From rswindell@VERT to CVS commit on Tue Nov 8 12:16:07 2016
    src/smblib smbadd.c 1.28 1.29 smbdefs.h 1.85 1.86 smblib.c 1.153 1.154 smblib.h 1.73 1.74
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv24278

    Modified Files:
    smbadd.c smbdefs.h smblib.c smblib.h
    Log Message:
    Inspired by the U.S. presdential election:
    The beginnings of an SMB-based voting system - very experimental:
    The concept is that a "vote" message can be used to reply to:
    1. A normal message, as either an upvote or a downvote, ala social media
    2. A poll, polls can either allow a single choice answer or multiple answers Vote messages won't be visible as normal messages (e.g. when reading messages online) and SMB processing software (e.g. SBBSecho) should ignore these messages because they have no body text.
    Polls are going to need more work, but the idea is to have the poll question as a single (newly defined) hfield and the possible answers as dfields.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Nov 15 21:31:07 2016
    src/smblib smbadd.c 1.33 1.34 smbdefs.h 1.90 1.91 smblib.c 1.157 1.158 smblib.h 1.77 1.78
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv23236

    Modified Files:
    smbadd.c smbdefs.h smblib.c smblib.h
    Log Message:
    Changed SMB_MSG_TYPE_VOTE to SMB_MSG_TYPE_BALLOT:
    There (will be) the possibilty to cast mutliple votes in a single vote-msg (ballot), when multi-choice polls are introduced later. There were just too many things call vote/votes and it was getting confusing in my own head. So the msg type for messages that contain votes is now "ballot".
    smb_voted_already() now returns uint16_t (instead of BOOL), returns the votes of the user (for polls) or just 1 for up/downvotes of msgs.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net