Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

You are here: Big Brother Bot ForumAdd-OnsPlugins Discussion (Moderator: MordyT)censor and not only not work after update B3
Pages: [1]   Go Down
  Print  
Author Topic: censor and not only not work after update B3  (Read 595 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BFBC2, CoDBO, BF3
Posts: 23
Offline Offline
WWW
« on: January 11, 2011, 04:29:08 AM »

updated to version 1.4.2b
all is well. but stopped working censor.
issues in the log which is a mistake. I ask you to help solve the problem since the plugin is very good and needed. Log, or rather the portion of the log with the specific error, see below.
Quote
.....
110111 14:05:05   CONSOLE   ['player.onChat', 'sergoportugal', 'antosha tebe pizda!!!!!!!!!!!!!!', 'all']
110111 14:05:05   VERBOSE   Queueing event Say antosha tebe pizda!!!!!!!!!!!!!!
110111 14:05:05   VERBOSE   Parsing Event: Say: CensorPlugin
110111 14:05:05   ERROR   CensorPlugin: Censor plugin error: not enough arguments for format string - [('/bot/b3/plugins/censor.py', 173, 'onEvent', "self.penalizeClient(w.penalty, event.client, '%s => %s' % (event.data, cleaned))"), ('/bot/b3/plugins/censor.py', 191, 'penalizeClient', 'self._adminPlugin.penalizeClient(penalty.type, client, penalty.reason, penalty.keyword, penalty.duration, None, data)'), ('/bot/b3/plugins/admin.py', 1540, 'penalizeClient', 'client.tempban(reason, keyword, duration, admin, False, data)'), ('/bot/b3/clients.py', 523, 'tempban', 'self.console.tempban(self, reason, duration, admin, silent)'), ('/bot/b3/parsers/frostbite/abstractParser.py', 821, 'tempban', "fullreason = self.getMessage('temp_banned', self.getMessageVariables(client=client, reason=reason, banduration=b3.functions.minutesStr(duration)))"), ('/bot/b3/parser.py', 703, 'getMessage', 'return msg % args[0]')]
110111 14:05:05   VERBOSE   Parsing Event: Say: AdminPlugin
110111 14:05:05   DEBUG   AdminPlugin: OnSay handle 5:"antosha tebe pizda!!!!!!!!!!!!!!"
........

in the old version of the word  immediately pizda banned.


the problem is likely to parser

admin wanted to kick a player but he got nothing. here is what the log

Quote
........
CONSOLE   ['player.onChat', 'rMasterx', '!kick softbox2 for mat', 'all']
110111 16:28:21   VERBOSE   Queueing event Say !kick softbox2 for mat
110111 16:28:21   VERBOSE   Parsing Event: Say: CensorPlugin
110111 16:28:21   VERBOSE   Parsing Event: Say: AdminPlugin
110111 16:28:21   DEBUG   AdminPlugin: OnSay handle 5:"!kick softbox2 for mat"
110111 16:28:21   DEBUG   AdminPlugin: Handle command !kick softbox2 for mat
110111 16:28:21   DEBUG   kick reason: [for mat]
110111 16:28:21   DEBUG   getCommand: ('admin.say', '(=[:BiG:]=): [pm] There was an error processing your command', 'player', 'rMasterx')
110111 16:28:21   VERBOSE   RCON (1/1) ('admin.say', '(=[:BiG:]=): [pm] There was an error processing your command', 'player', 'rMasterx')
110111 16:28:21   ERROR   handler AdminPlugin could not handle event Say: TypeError: not enough arguments for format string [('/bot/b3/parser.py', 921, 'handleEvents', 'hfunc.parseEvent(event)'), ('/bot/b3/plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('/bot/b3/plugin.py', 175, 'onEvent', 'self.handle(event)'), ('/bot/b3/plugins/admin.py', 218, 'handle', 'self.OnSay(event)'), ('/bot/b3/plugins/admin.py', 362, 'OnSay', 'results = command.execute(data, event.client)'), ('/bot/b3/plugins/admin.py', 2001, 'execute', 'self.func(data, client, copy.copy(self))'), ('/bot/b3/plugins/admin.py', 1191, 'cmd_kick', 'sclient.kick(reason, keyword, client)'), ('/bot/b3/clients.py', 474, 'kick', 'self.console.kick(self, reason, admin, silent)'), ('/bot/b3/parsers/frostbite/abstractParser.py', 796, 'kick', "fullreason = self.getMessage('kicked_by', self.getMessageVariables(client=client, reason=reason, admin=admin))"), ('/bot/b3/parser.py', 703, 'getMessage', 'return msg % args[0]')]
110111 16:28:21   VERBOSE   Parsing Event: Say: ChatloggerPlugin
110111 16:28:21   DEBUG   ChatloggerPlugin: ALL, 58, [=:BiG:=] rMasterx, !kick softbox2 for mat
.......
« Last Edit: January 11, 2011, 06:28:23 AM by gazgaz » Logged

Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD
Posts: 6
Offline Offline
« Reply #1 on: February 13, 2011, 11:14:46 PM »

I had the same problem.  Read this thread

http://www.bigbrotherbot.net/forums/plugin-developers/devel-version-of-b3-won%27t-kick-after-warnings/

Looks like they changed the messaging stuff in the newer version, and you have to redo your b3.xml.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal