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?
September 07, 2008, 10:50:07 PM

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: AccessControlGUI.php
Pages: [1]   Go Down
« previous next »
Print
Author Topic: AccessControlGUI.php  (Read 325 times)
0 Members and 1 Guest are viewing this topic.
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


AccessControlGUI.php
« on: June 06, 2007, 12:02:20 AM »

Well, I finally decided to deal with the spam you get when using !commands <channel>.

Currently when using it, you see this:

Code:
Cafraid: Current access levels for Private Chatgroup (Page 1) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 1) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 2) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 2) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 3) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 3) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 4) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 4) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 5) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 5) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 6) (page 1 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 6) (page 2 of 2)
Cafraid: Current access levels for Private Chatgroup (Page 7)

With the changed code, you see this:

Code:
Cafraid: Current access levels for Private Chatgroup (page 1 of 9)
Cafraid: Current access levels for Private Chatgroup (page 2 of 9)
Cafraid: Current access levels for Private Chatgroup (page 3 of 9)
Cafraid: Current access levels for Private Chatgroup (page 4 of 9)
Cafraid: Current access levels for Private Chatgroup (page 5 of 9)
Cafraid: Current access levels for Private Chatgroup (page 6 of 9)
Cafraid: Current access levels for Private Chatgroup (page 7 of 9)
Cafraid: Current access levels for Private Chatgroup (page 8 of 9)
Cafraid: Current access levels for Private Chatgroup (page 9 of 9)

The problem is that it gets cut off halfway through a command (shows the command but not the access levels), but that happens currently anyway.

Couple of changes.

Line 105:

Code:
<?php
$blob 
.= "<br>Click on an access level to change it for that command.##end##<br>";
?>


Removed an annoying . before the first <br> .  Smiley

Line 122:

Code:
<?php
foreach ($rights as $right)
{
if (isset($this -> bot -> commands[$channel][$right['command']]))
{
$cmdtext = "Access to command: ##highlight##<pre>{$right['command']}##end## <br> [" .
$this -> Make_access_string($right['command'], $right['minlevel'], $channel) . "]";
$blob .= "<br>" . $cmdtext . "<br>";
}
}
$page_counter ++;
$this -> bot -> send_tell($name, $this -> bot -> make_blob($title, $blob));
?>


Removed the bit of code to try and split up the pages, so the bot can handle it automagically.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AccessControlGUI.php
« Reply #1 on: June 06, 2007, 12:55:36 PM »

Committed to SVN.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
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: AccessControlGUI.php
« previous next »
 
Jump to:  

Recent
Help with online info in ...
by Barlyman
[Today at 07:56:24 PM]

BeBot v0.5.3 released (de...
by Temar
[Today at 07:51:18 PM]

Security
by Alreadythere
[September 06, 2008, 10:02:42 AM]

Probs with relay from gue...
by Temar
[September 06, 2008, 09:03:06 AM]

Raid spam in guild chat
by Temar
[September 06, 2008, 09:01:18 AM]

Org Relaying
by Nytridr
[September 06, 2008, 01:34:35 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]

How to find the guild ID?...
by Irinir
[September 03, 2008, 02:58:54 PM]
Stats
Members
Total Members: 965
Latest: morisey
Stats
Total Posts: 10414
Total Topics: 1413
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 5
Guests: 20
Total: 25
blackspell
egrath
paranoiak
Zeephonz
Barlyman

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