projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ac7e3d
)
do not show empty lines in CGod.class.php
author
pk910
<philipp@zoelle1.de>
Sun, 27 Nov 2011 02:42:09 +0000
(
03:42
+0100)
committer
pk910
<philipp@zoelle1.de>
Sun, 27 Nov 2011 02:42:09 +0000
(
03:42
+0100)
Bots/CGod.class.php
patch
|
blob
|
history
diff --git
a/Bots/CGod.class.php
b/Bots/CGod.class.php
index a0227eb5e8e905aba54bed402d766df552e3f0af..40a466f2519119a1e75c9517a0c1e1218076ac67 100644
(file)
--- 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) {
$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!");
$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) {
$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!");
$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) {
$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!");
$i++;
if($i>1000) {
$this->uplink->privmsg($this->c, $c['channel'], "too many lines!");