Skip to content
Snippets Groups Projects
Commit eb9fb7e0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Elminate old copy/paste cruft (likely from readmsgs.c/cpp)

parent a9a4f228
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3621 passed
...@@ -544,7 +544,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -544,7 +544,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
break; break;
case ')': case ')':
case '}': /* Search Author forward */ case '}': /* Search Author forward */
strcpy(str,msg.from);
for(u=smb.curmsg+1;u<smb.msgs;u++) for(u=smb.curmsg+1;u<smb.msgs;u++)
if(mail[u].from==msg.idx.from) if(mail[u].from==msg.idx.from)
break; break;
...@@ -568,7 +567,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -568,7 +567,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
break; break;
case '(': case '(':
case '{': /* Search Author backward */ case '{': /* Search Author backward */
strcpy(str,msg.from);
if(smb.curmsg > 0) { if(smb.curmsg > 0) {
for(u=smb.curmsg-1;;u--) { for(u=smb.curmsg-1;;u--) {
if(mail[u].from==msg.idx.from) { if(mail[u].from==msg.idx.from) {
...@@ -584,7 +582,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -584,7 +582,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
} }
break; break;
case ']': /* Search To User forward */ case ']': /* Search To User forward */
strcpy(str,msg.to);
for(u=smb.curmsg+1;u<smb.msgs;u++) for(u=smb.curmsg+1;u<smb.msgs;u++)
if(mail[u].to==msg.idx.to) if(mail[u].to==msg.idx.to)
break; break;
...@@ -596,7 +593,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -596,7 +593,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
} }
break; break;
case '[': /* Search To User backward */ case '[': /* Search To User backward */
strcpy(str,msg.to);
if(smb.curmsg > 0) { if(smb.curmsg > 0) {
for(u=smb.curmsg-1;;u--) { for(u=smb.curmsg-1;;u--) {
if(mail[u].to==msg.idx.to) { if(mail[u].to==msg.idx.to) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment