From: pk910 Date: Sun, 27 Nov 2011 02:42:09 +0000 (+0100) Subject: do not show empty lines in CGod.class.php X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=204044c5fd8633432b2b2a28dededca53a27bb75 do not show empty lines in CGod.class.php --- diff --git a/Bots/CGod.class.php b/Bots/CGod.class.php index a0227eb..40a466f 100644 --- a/Bots/CGod.class.php +++ b/Bots/CGod.class.php @@ -100,6 +100,7 @@ class {$_NAME} extends Bot { $lines=explode("\n",$err); $i=0; foreach($lines as $line) { + if($line == "") continue; $i++; if($i>100) { $this->uplink->privmsg($this->c, $entry['channel'], "too many lines!"); @@ -147,6 +148,7 @@ class {$_NAME} extends Bot { $lines=explode("\n",$out); $i=0; foreach($lines as $line) { + if($line == "") continue; $i++; if($i>1000) { $this->uplink->privmsg($this->c, $c['channel'], "too many lines!"); @@ -160,6 +162,7 @@ class {$_NAME} extends Bot { $lines=explode("\n",$eout); $i=0; foreach($lines as $line) { + if($line == "") continue; $i++; if($i>1000) { $this->uplink->privmsg($this->c, $c['channel'], "too many lines!");