$reason = isset($_POST['ban_reason']) ? $_POST['ban_reason'] : "No reason";
$soft = (isset($_POST['soft'])) ? true : false;
if ($soft)
- $targ_chars = "%" . $targ_chars;
+ $bantype = "soft-$bantype";
if ($rpc->spamfilter()->add($sf, $match_type, $targ_chars, $bantype, $duration, $reason))
Message::Success("Added spamfilter entry \"$sf\" [match type: $match_type] [targets: $targ_chars] [reason: $reason]");
else
</div></div></div></div>
- <table class="table table-responsive caption-top table-striped">
+ <table class="container-xxl table-sm table-responsive caption-top table-striped">
<thead class="table-primary"><form action="spamfilter.php" method="post">
<th><input type="checkbox" label='selectall' onClick="toggle_sf(this)" /></th>
<th>Match Type</th>
echo "<td>".$sf->match_type."</td>";
echo "<td>".$sf->name."</td>";
echo "<td>".spamfilter_targets_to_string_with_info($sf->spamfilter_targets)."</td>";
- echo "<td>".$sf->ban_action."</td>";
+ echo "<td><span class=\"badge rounded-pill badge-info\">".$sf->ban_action."</span></td>";
echo "<td>".$sf->ban_duration_string."</td>";
echo "<td>".$sf->reason."</td>";
- echo "<td>".$sf->set_by."</td>";
+ echo "<td>".show_nick_only($sf->set_by)."</td>";
echo "<td>".$sf->set_at_string."</td>";
}