]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Tidy up duplicate messages
authorValerie Pond <redacted>
Thu, 5 Jan 2023 01:06:18 +0000 (01:06 +0000)
committerValerie Pond <redacted>
Thu, 5 Jan 2023 01:06:18 +0000 (01:06 +0000)
Classes/class-rpc.php
index.php

index cff23df04bf125e6e9bc48b73a9a5f80c7888516..73afc1dcb7d4394a879867698822ccd7543696a4 100644 (file)
@@ -86,7 +86,7 @@ class RPC
 
                if (UNREALIRCD_DEBUG)
                        do_log("SENDING JSON:", $this->content['body']);
-                       
+
                curl_setopt($curl, CURLOPT_POSTFIELDS, $this->content['body']);
 
                //for debug only!
@@ -264,7 +264,7 @@ function rpc_sf_del($name, $mtype, $targets, $action) : bool
        else
        {
                $r = $result['result']['tkl']; 
-               Message::Success($r['name']." [type: ".$r['match_type']."] [targets: ".$r['spamfilter_targets']. "] [action: ".$r['ban_action']."] [reason: ".$r['reason']."] [set by: ".$r['set_by']."]");
+               Message::Success("Deleted spamfilter entry: ".$r['name']." [type: ".$r['match_type']."] [targets: ".$r['spamfilter_targets']. "] [action: ".$r['ban_action']."] [reason: ".$r['reason']."] [set by: ".$r['set_by']."]");
        }
        return true;
 }
\ No newline at end of file
index 9315bf80e0f1e346fed5b26f543c9e2152129597..55fa3c755f7d702548dae1680a33afd334e517e9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -89,7 +89,6 @@ if (!empty($_POST)) {
                        foreach ($value as $tok) {
                                $tok = explode(",", $tok);
                                rpc_sf_del(base64_decode($tok[0]), base64_decode($tok[1]), base64_decode($tok[2]), base64_decode($tok[3]));
-                               Message::Success(base64_decode($tok[1])." has been added for ".base64_decode($tok[0]));
                        }
                }
 }