]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Update to latest unrealircd-rpc-php and
authorBram Matthys <redacted>
Thu, 12 Jan 2023 16:35:43 +0000 (17:35 +0100)
committerBram Matthys <redacted>
Thu, 12 Jan 2023 16:35:43 +0000 (17:35 +0100)
some exception() -> serverbanexception() changes now that i renamed
it in unrealircd-rpc-php :D

composer.lock
server_bans.php

index 5c9e90122bf67188cad0b3f16aaa557546509129..f4e932608f6ec12a989219a436b08b6a1fff2881 100644 (file)
             "source": {
                 "type": "git",
                 "url": "https://github.com/unrealircd/unrealircd-rpc-php.git",
-                "reference": "2d5f74f2644425610ce48301309e5d727ccd7c61"
+                "reference": "65b6ddcbb9a8af0066fcdc588c92c210b5388fc4"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/unrealircd/unrealircd-rpc-php/zipball/2d5f74f2644425610ce48301309e5d727ccd7c61",
-                "reference": "2d5f74f2644425610ce48301309e5d727ccd7c61",
+                "url": "https://api.github.com/repos/unrealircd/unrealircd-rpc-php/zipball/65b6ddcbb9a8af0066fcdc588c92c210b5388fc4",
+                "reference": "65b6ddcbb9a8af0066fcdc588c92c210b5388fc4",
                 "shasum": ""
             },
             "require": {
                 "issues": "https://github.com/unrealircd/unrealircd-rpc-php/issues",
                 "source": "https://github.com/unrealircd/unrealircd-rpc-php/tree/main"
             },
-            "time": "2023-01-10T05:14:00+00:00"
+            "time": "2023-01-12T16:32:36+00:00"
         }
     ],
     "packages-dev": [],
index 8c67a2cc3846fbdd19abc17f7edae78e30cc9fa4..9bf72dd4f9ce41dc9c6a526b7156095dae2ba333 100644 (file)
@@ -17,7 +17,7 @@ if (!empty($_POST))
                                $type = base64_decode($tok[1]);
                                $success = false;
                                if ($type == "except")
-                                       $success = $rpc->exception()->delete($ban);
+                                       $success = $rpc->serverbanexception()->delete($ban);
                                else if ($type == "qline" || $type == "local-qline")
                                        $success = $rpc->nameban()->delete($ban);
                                else
@@ -80,7 +80,7 @@ if (!empty($_POST))
                }
                elseif ($bantype == "except")
                {
-                       if ($rpc->exception()->add($iphost, "", $duration, $reason))
+                       if ($rpc->serverbanexception()->add($iphost, "", $duration, $reason))
                                Message::Success("Exception set for \"$iphost\": $reason");
                        else
                                Message::Fail("Exception could not be set \"$iphost\": $rpc->error");
@@ -97,7 +97,7 @@ if (!empty($_POST))
 $tkl = $rpc->serverban()->getAll();
 foreach ($rpc->nameban()->getAll() as $v)
        $tkl[] = $v;
-foreach ($rpc->exception()->getAll() as $v)
+foreach ($rpc->serverbanexception()->getAll() as $v)
        $tkl[] = $v;
 ?>
 <h4>Server Bans Overview</h4><br>