LizardBot r28 - Code Review

From LizardWiki, FastLizard4's wiki and website
Jump to: navigation, search
Repository:LizardBot
Revision:r27‎ | r28 (on ViewVC)‎ | r29 >
Date:03:52, 23 March 2009
Author:FastLizard4
Status:reverted
Tags:
Comment:
Updating bot to version 6.0.0.3:
*Adds another error condition to the editcount function
Modified paths:

Diff [purge]

Index: lizardbot.php
@@ -49,7 +49,7 @@
5050 |_____||_______| |________||_| |_| |_| \__\ |____/
5151
5252 PHP-LizardBot: IRC bot developed by FastLizard4 (who else?) and the LizardBot Development Team
53 -Version 6.0.0.2b (major.minor.build.revision) BETA
 53+Version 6.0.0.3b (major.minor.build.revision) BETA
5454 Licensed under the Creative Commons GNU General Public License 2.0 (GPL)
5555 For licensing details, contact me or read this page:
5656 http://creativecommons.org/licenses/GPL/2.0/
@@ -85,7 +85,7 @@
8686 <?php
8787 //Check for updates
8888 echo "{$c_yellow}Checking for updates...\r\n";
89 -$version = "6.0.0.2b";
 89+$version = "6.0.0.3b";
9090 $upfp = @fopen('http://scalar.cluenet.org/~fastlizard4/latest.php', 'r');
9191 $data = @fgets($upfp);
9292 @fclose($upfp);
@@ -1015,7 +1015,7 @@
10161016 }
10171017 if($d[3] == "{$setTrigger}update" && hasPriv('*')) {
10181018 echo "Checking for updates...\r\n";
1019 - $version = "6.0.0.2b";
 1019+ $version = "6.0.0.3b";
10201020 $upfp = @fopen('http://scalar.cluenet.org/~fastlizard4/latest.php', 'r');
10211021 $data = @fgets($upfp);
10221022 @fclose($upfp);
@@ -1286,6 +1286,7 @@
12871287 }
12881288 $i++;
12891289 }
 1290+ if($i > 50) { $data = "ERROR: Connection Timed Out!"; }
12901291 $editcount['live'] = explode("<b>Live edits: ", $soxtoolOut);
12911292 $editcount['live']['parsed'] = explode("</b><br />", $editcount['live'][1]);
12921293 $editcount['userrights'] = explode("User groups: ", $soxtoolOut);

Status & tagging log