do not show empty lines in CGod.class.php
authorpk910 <philipp@zoelle1.de>
Sun, 27 Nov 2011 02:42:09 +0000 (03:42 +0100)
committerpk910 <philipp@zoelle1.de>
Sun, 27 Nov 2011 02:42:09 +0000 (03:42 +0100)
Bots/CGod.class.php

index a0227eb5e8e905aba54bed402d766df552e3f0af..40a466f2519119a1e75c9517a0c1e1218076ac67 100644 (file)
@@ -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!");