L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 06, 2008, 09:26:06 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Updated BotHelp.php
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Updated BotHelp.php  (Read 317 times)
0 Members and 1 Guest are viewing this topic.
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


Updated BotHelp.php
« on: June 05, 2007, 11:45:13 PM »

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.  Smiley

Code:
<?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##';
}
?>

Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: Updated BotHelp.php
« Reply #1 on: June 07, 2007, 04:03:59 AM »

Implemented.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Updated BotHelp.php
« previous next »
 
Jump to:  

Recent
!items database
by cthulhu
[October 05, 2008, 11:36:16 AM]

Supplies needed module
by viper
[October 05, 2008, 11:11:13 AM]

Assist
by Foxy
[October 05, 2008, 05:09:02 AM]

How's 0.5.x coming? Wonde...
by Hyde
[October 04, 2008, 04:59:20 PM]

TWC
by Elesar1
[October 04, 2008, 12:55:59 PM]

Org in AoC
by Alreadythere
[October 04, 2008, 04:50:00 AM]

OnlineOrg
by Slacklin
[October 04, 2008, 03:06:00 AM]

Learning .NET, Mono, C#, ...
by Vhab
[October 04, 2008, 02:39:03 AM]

guild taxes module for ag...
by Elesar1
[October 03, 2008, 09:06:09 AM]

MediaControl
by Elesar1
[October 03, 2008, 08:38:18 AM]
Stats
Members
Total Members: 983
Latest: Titerris
Stats
Total Posts: 10740
Total Topics: 1448
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 44
Total: 46
Sudoka
cthulhu

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.258 seconds with 29 queries. (Pretty URLs adds 0.03s, 4q)
Loading...