Commit de1f328a authored by rswindell's avatar rswindell
Browse files

New text.dat entries:

- VoteInThisPollNow
- MIMEDecodedPlainText
parent 3d81ec01
......@@ -962,3 +962,5 @@
"\r\nToggle which vote (up to %u), ~Quit or [Cast]: " 793 BallotVoteWhich
"Only" 794 Only
"\1n\1h\1c\r\nSPAM Visibility is now: \1w" 795 SPAMVisibilityIsNow
"\r\nTo vote in this poll, hit ~V now.\r\n" 796 VoteInThisPollNow
"\1n\1mMIME-decoded plain-text:\1n\r\n" 797 MIMEDecodedPlainText
\ No newline at end of file
......@@ -804,5 +804,7 @@ var BallotAnswerFmt=792;
var BallotVoteWhich=793;
var Only=794;
var SPAMVisibilityIsNow=795;
var VoteInThisPollNow=796;
var MIMEDecodedPlainText=797;
var TOTAL_TEXT=796;
var TOTAL_TEXT=798;
......@@ -248,13 +248,19 @@ void sbbs_t::show_msg(smbmsg_t* msg, long mode, post_t* post)
answers++;
}
if(!msg->user_voted && !(useron.misc&EXPERT) && !(msg->hdr.auxattr&POLL_CLOSED) && !(useron.rest&FLAG('V')))
mnemonics("\r\nTo vote in this poll, hit ~V now.\r\n");
mnemonics(text[VoteInThisPollNow]);
return;
}
if((txt=smb_getmsgtxt(&smb,msg,(console&CON_RAW_IN) ? 0:GETMSGTXT_PLAIN)) != NULL) {
if(!(console&CON_RAW_IN))
mode|=P_WORDWRAP;
if((txt=smb_getmsgtxt(&smb, msg, 0)) != NULL) {
char* p = txt;
if(!(console&CON_RAW_IN)) {
mode|=P_WORDWRAP;
p = smb_getplaintext(msg, txt);
if(p == NULL)
p = txt;
else
bputs(text[MIMEDecodedPlainText]);
}
truncsp(p);
SKIP_WHITESPACE(p);
putmsg(p, mode);
......
......@@ -806,6 +806,8 @@ enum {
,BallotVoteWhich
,Only
,SPAMVisibilityIsNow
,VoteInThisPollNow
,MIMEDecodedPlainText
,TOTAL_TEXT
};
......
......@@ -1316,4 +1316,8 @@ const char * const text_defaults[TOTAL_TEXT]={
,"\x4f\x6e\x6c\x79" // 794 Only
,"\x01\x6e\x01\x68\x01\x63\x0d\x0a\x53\x50\x41\x4d\x20\x56\x69\x73\x69\x62\x69\x6c\x69\x74\x79\x20\x69\x73\x20\x6e\x6f\x77\x3a\x20"
"\x01\x77" // 795 SPAMVisibilityIsNow
,"\x0d\x0a\x54\x6f\x20\x76\x6f\x74\x65\x20\x69\x6e\x20\x74\x68\x69\x73\x20\x70\x6f\x6c\x6c\x2c\x20\x68\x69\x74\x20\x7e\x56\x20\x6e"
"\x6f\x77\x2e\x0d\x0a" // 796 VoteInThisPollNow
,"\x01\x6e\x01\x6d\x4d\x49\x4d\x45\x2d\x64\x65\x63\x6f\x64\x65\x64\x20\x70\x6c\x61\x69\x6e\x2d\x74\x65\x78\x74\x3a\x01\x6e\x0d\x0a"
"" // 797 MIMEDecodedPlainText
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment