Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
c9d1c325
Commit
c9d1c325
authored
Aug 25, 2011
by
rswindell
Browse files
Fixed [U]edit and [P]urge sysop commands for when the sending user number is
not known.
parent
479333ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/sbbs3/readmail.cpp
src/sbbs3/readmail.cpp
+13
-4
No files found.
src/sbbs3/readmail.cpp
View file @
c9d1c325
...
...
@@ -700,15 +700,24 @@ void sbbs_t::readmail(uint usernumber, int which)
case
'U'
:
/* user edit */
msg
.
hdr
.
number
=
msg
.
idx
.
number
;
smb_getmsgidx
(
&
smb
,
&
msg
);
useredit
(
which
==
MAIL_SENT
?
msg
.
idx
.
to
:
msg
.
idx
.
from
);
if
((
which
==
MAIL_SENT
?
msg
.
idx
.
to
:
msg
.
idx
.
from
)
==
0
)
{
bputs
(
text
[
UnknownUser
]);
domsg
=
false
;
}
else
useredit
(
which
==
MAIL_SENT
?
msg
.
idx
.
to
:
msg
.
idx
.
from
);
break
;
case
'P'
:
/* Purge author and all mail to/from */
if
(
noyes
(
text
[
AreYouSur
eQ
]))
if
(
noyes
(
text
[
UeditDelet
eQ
]))
break
;
msg
.
hdr
.
number
=
msg
.
idx
.
number
;
smb_getmsgidx
(
&
smb
,
&
msg
);
purgeuser
(
msg
.
idx
.
from
);
if
(
smb
.
curmsg
<
smb
.
msgs
-
1
)
smb
.
curmsg
++
;
if
((
which
==
MAIL_SENT
?
msg
.
idx
.
to
:
msg
.
idx
.
from
)
==
0
)
{
bputs
(
text
[
UnknownUser
]);
domsg
=
false
;
}
else
{
purgeuser
(
msg
.
idx
.
from
);
if
(
smb
.
curmsg
<
smb
.
msgs
-
1
)
smb
.
curmsg
++
;
}
break
;
case
'?'
:
strcpy
(
str
,
which
==
MAIL_YOUR
?
"mailread"
:
which
==
MAIL_ALL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment