]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commitdiff
Add log.list (yeah that is in progress :D)
authorBram Matthys <redacted>
Thu, 27 Apr 2023 18:10:13 +0000 (20:10 +0200)
committerBram Matthys <redacted>
Thu, 27 Apr 2023 18:13:02 +0000 (20:13 +0200)
lib/Log.php

index 88a52fe23d0925bc84c716bb4d84dea6dc6b6b52..45c42d82e6cd7f26a21e99a88192692309694bd3 100644 (file)
@@ -37,4 +37,15 @@ class Log
     {
         return $this->connection->query('log.unsubscribe');
     }
+
+    /**
+     * Get past log events.
+     *
+     * @return stdClass|array|bool
+     */
+    public function getAll(array $sources): stdClass|array|bool
+    {
+        return $this->connection->query('log.list', [
+        ]);
+    }
 }