Signed-off-by: NurPech <nurpech@nurpech.de>
[ZNCAdmin.git] / zncadmin / ZNCServer.class.php
index fdf3c1e02daa86fc6f9c6cfb4c3bc20f01eea5ee..21d134bcf81281fe20c78799168ec8977a87a410 100644 (file)
@@ -381,7 +381,7 @@ class ZNCServer {
         $post['defmodes'] = '';
         $post['save'] = 'true';
         $post['autoclearchanbuffer'] = 'true';
-        $this->connector->post("http://".$this->host.":".$this->port."/mods/global/webadmin/addchan?user=".$username, $post);
+        $this->connector->post("http://".$this->host.":".$this->port."/mods/global/webadmin/addchan?user=".$username.'&network=default', $post);
     }
 
 }