projects
/
ZNCAdmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a50b62d
)
fixed coding fail
author
pk910
<philipp@zoelle1.de>
Sat, 29 Jun 2013 22:57:25 +0000
(
00:57
+0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 29 Jun 2013 23:01:03 +0000
(
01:01
+0200)
zncadmin/ZNCServer.class.php
patch
|
blob
|
history
diff --git
a/zncadmin/ZNCServer.class.php
b/zncadmin/ZNCServer.class.php
index 8af0194188fc6687affcae0c52db3a3c274382e0..92e9c3f4da6dd15ee0eb6f08c43d419f765fe5d5 100644
(file)
--- a/
zncadmin/ZNCServer.class.php
+++ b/
zncadmin/ZNCServer.class.php
@@
-45,7
+45,7
@@
class ZNCServer {
public function ZNCServer($host, $port, $version = null) {
$this->host = $host;
$this->port = $port;
public function ZNCServer($host, $port, $version = null) {
$this->host = $host;
$this->port = $port;
- if(
is_
empty(self::$zncserver_classes))
+ if(empty(self::$zncserver_classes))
self::load_classes();
if($version !== null) {
$this->loadServerObject($version);
self::load_classes();
if($version !== null) {
$this->loadServerObject($version);
@@
-82,7
+82,7
@@
class ZNCServer {
$logged_in = !preg_match("/errorbar/i", $http);
/* Version detection */
$logged_in = !preg_match("/errorbar/i", $http);
/* Version detection */
- if(preg_match("
ZNC ([0-9]+\.[0-9]+)
", $http, $version_match))
+ if(preg_match("
#ZNC ([0-9]+\.[0-9]+)#
", $http, $version_match))
$this->loadServerObject($version_match[1], $connector);
return $logged_in;
$this->loadServerObject($version_match[1], $connector);
return $logged_in;