]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - Classes/class-rpc.php
Make tls certs in <code></code>
[irc/unrealircd/unrealircd-webpanel.git] / Classes / class-rpc.php
index a9a2492de92082b8f51b4082402dc95744f8fc67..886b974a1bae5c779d6c01588bab39b661953bb9 100644 (file)
@@ -22,6 +22,9 @@ class RPC_List
        static $channel = [];
        static $tkl = [];
        static $spamfilter = [];
+       static $server = [];
+       static $nameban = [];
+       static $exception = [];
 
        static $opercount = 0;
        static $services_count = 0;
@@ -37,7 +40,7 @@ function rpc_pop_lists()
        $ret = $rpc->user()->getAll();
        // TODO: error checking
 
-       foreach($ret->list as $r)
+       foreach($ret as $r)
        {
                RPC_List::$user[] = $r;
                if (strpos($r->user->modes,"o") !== false && strpos($r->user->modes,"S") == false)
@@ -48,7 +51,7 @@ function rpc_pop_lists()
 
        /* Get the channels list */
        $ret = $rpc->channel()->getAll();
-       foreach($ret->list as $r)
+       foreach($ret as $r)
        {
                RPC_List::$channel[] = $r;
                if ($r->num_users > RPC_List::$channel_pop_count)
@@ -60,14 +63,22 @@ function rpc_pop_lists()
 
        /* Get the tkl list */
        $ret = $rpc->serverban()->getAll();
-       foreach($ret->list as $r)
+       foreach($ret as $r)
                RPC_List::$tkl[] = $r;
 
        /* Get the spamfilter list */
        $ret = $rpc->spamfilter()->getAll();
-       foreach($ret->list as $r)
+       foreach($ret as $r)
                RPC_List::$spamfilter[] = $r;
-
+       
+       foreach ($rpc->nameban()->getAll() as $r)
+               RPC_List::$nameban[] = $r;
+               
+       foreach ($rpc->serverbanexception()->getAll() as $r)
+               RPC_List::$exception[] = $r;
+       
+       foreach ($rpc->server()->getAll() as $r)
+               RPC_List::$server[] = $r;
 }
 
 /** Convert the duration_string */