BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.3.x Custom/Unofficial Modules => Topic started by: Ebag333 on June 06, 2007, 06:45:13 am

Title: Updated BotHelp.php
Post by: Ebag333 on June 06, 2007, 06:45:13 am
On line 165, just added a check to see if we have a help for it or not.

Might not be the best way to to it, but I got tired of seeing the error and having a funny looking help window.  :)

Code: [Select]
<?php
if (!empty($help['command']))
{
foreach ($help['command'] as $key => $value)
{
// Only show help for the specific command, not all help for module!
$parts explode(' '$key);
if (strcasecmp($command$parts[0]) == 0)
{
$key str_replace('<''&lt;'$key);
$value str_replace('<''&lt;'$value);
$window .= " ##highlight##<pre>$key##end## - $value<br>";
}
}

$window .= '<br>##highlight##NOTES:##end##<br>'.$help['notes'];

}
else
{
$window .= '##highlight##No Help Found##end##';
}
?>

Title: Re: Updated BotHelp.php
Post by: Alreadythere on June 07, 2007, 11:03:59 am
Implemented.
SimplePortal 2.3.7 © 2008-2024, SimplePortal