collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: BanManager  (Read 3249 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
BanManager
« on: January 23, 2008, 03:35:47 am »
i have Improved Slightly and Added !blacklist as command alias of ban
blacklist module should be removed (buggy and not needed)

Changes
  • whois now Check if Banned not just blacklist
  • when banning it does a Check if user is in pgroup, if so kick

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: BanManager
« Reply #1 on: March 10, 2008, 10:46:09 pm »
Fatal error: Call to a member function register() on a non-object in P:\pobot3\m
odules\BanManager.php on line 74


Code: [Select]
$this -> bot -> commandalias -> register("ban", "banlist");

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: BanManager
« Reply #2 on: March 10, 2008, 11:00:21 pm »
Are you using the trunk version? The command alias requires that core module.

Here is a 0.4.3 version of the command alias module.

Offline Threeze

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: BanManager
« Reply #3 on: March 11, 2008, 12:24:57 am »
Tried doing it myself [no luck], but any chance on a modified whois module that would get the blacklist info and directly dump the reason the person is on the blacklist into the blob showing the character information?

I.e.:
xxxbot: A "Bbbb" C is a level 220 (AT 7 - Common) Female Opifex Agent, Clan, Member of Somecrappyorg:: Blacklisted! Reason: reasongoeshere :: Details

as opposed to:
xxxbot: A "Bbbb" C is a level 220 (AT 7 - Common) Female Opifex Agent, Clan, Member of Somecrappyorg:: Warning: Blacklisted! :: Details


I realize it would lengthen the whois spam, but it would also be more informative... if this isn't desirable, then a link to the reason the person was blacklisted would also be nice.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: BanManager
« Reply #4 on: March 11, 2008, 12:43:04 am »
well on the current SVN playernotes will show up on !whois if any, playnotes will include ban reasons

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: BanManager
« Reply #5 on: March 11, 2008, 03:50:05 am »
using 4.3, copied proper files in and now

!ban add name reason results in

Fatal error: Call to a member function get_uid() on a non-object in P:\pobot3\mo
dules\BanManager.php on line 175

Code: [Select]
$id = $this -> bot -> chat -> get_uid($user);

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: BanManager
« Reply #6 on: March 11, 2008, 03:52:27 am »
Code: [Select]
$id = $this -> bot -> chat -> get_uid($user);
$this->bot->chat->get_uid($user) was called $this->bot->aoc->get_uid($user); prior to trunk iirc.

It's not advised to mix modules between versions but to use back ports where availible.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: BanManager
« Reply #7 on: March 11, 2008, 04:11:51 am »
maybe i'll just looking to moving us towards 5 then.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 732
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal