]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commitdiff
Ban -> ServerBan part II
authorBram Matthys <redacted>
Fri, 6 Jan 2023 14:10:38 +0000 (15:10 +0100)
committerBram Matthys <redacted>
Fri, 6 Jan 2023 14:10:38 +0000 (15:10 +0100)
lib/Connection.php
lib/Contracts/ServerBan.php
lib/ServerBan.php

index 30d7deefe25e983ec909f5ebc2e7aeb6c59feb58..610aa030d5ecb753f7fca66a605fea00f6f86a7a 100644 (file)
@@ -81,9 +81,9 @@ class Connection
         return new Channel($this);
     }
 
-    public function ban(): Ban
+    public function serverban(): ServerBan
     {
-        return new Ban($this);
+        return new ServerBan($this);
     }
 
     public function spamfilter(): Spamfilter
index cf04f8685023c6bd250f8820c10e1a0357feea03..e6b8bd340445c436aee2ab51a67db79f09bedeb8 100644 (file)
@@ -4,7 +4,7 @@ namespace UnrealIRCd\Contracts;
 
 use stdClass;
 
-interface Ban extends Contract
+interface ServerBan extends Contract
 {
     /**
      * Add a ban for a user.
index c1c9a2fda3bafd808d3e1e4cc194b6f3c1f81917..46c922f5d81fcf84e5402a0ddbc429e2aeeb64bc 100644 (file)
@@ -5,7 +5,7 @@ namespace UnrealIRCd;
 use Exception;
 use stdClass;
 
-class Ban implements Contracts\Ban
+class ServerBan implements Contracts\ServerBan
 {
 
     public Connection $connection;