Skip to content

Commit ed072d5

Browse files
authored
Merge pull request #6169 from BOINC/dpa_pm3
Web: if send a PM to banished user, say they can't reply immediately
2 parents a933c65 + ba2f7a5 commit ed072d5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

html/inc/pm.inc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ function pm_form_page($replyto, $userid, $error = null) {
147147
if (!$user) {
148148
error_page("Sender no longer exists");
149149
}
150+
if (is_banished($user)) {
151+
echo sprintf(
152+
"<p>
153+
This user is banished until %s.
154+
You can send them a message, but they can't reply until then.
155+
<p>",
156+
time_str($user->prefs->banished_until)
157+
);
158+
}
150159
$writeto = UNIQUE_USER_NAME?$user->name:$userid." (".$user->name.")";
151160
} else {
152161
$writeto = sanitize_tags(post_str("to", true));

0 commit comments

Comments
 (0)