From 204044c5fd8633432b2b2a28dededca53a27bb75 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 27 Nov 2011 03:42:09 +0100 Subject: [PATCH] do not show empty lines in CGod.class.php --- Bots/CGod.class.php | 3 +++ 1 file changed, 3 insertions(+) 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!"); -- 2.20.1