Closed ozguruysal closed 12 years ago
!unban !ban not working correctly for urban terro too
error processing
120120 20:48:22 CONSOLE "18:07 say: 14 Cs|F'#Fanta'Sniip3: !permban @5752 bot said hack" 120120 20:48:22 ERROR 'handler AdminPlugin could not handle event Say: TypeError: not enough arguments for format string [(\'/usr/local/games/big-brother-bot/b3/parser.py\', 1002, \'handleEvents\', \'hfunc.parseEvent(event)\'), (\'/usr/local/games/big-brother-bot/b3/plugin.py\', 158, \'parseEvent\', \'self.onEvent(event)\'), (\'/usr/local/games/big-brother-bot/b3/plugin.py\', 176, \'onEvent\', \'self.handle(event)\'), (\'/usr/local/games/big-brother-bot/b3/plugins/admin.py\', 229, \'handle\', \'self.OnSay(event)\'), (\'/usr/local/games/big-brother-bot/b3/plugins/admin.py\', 374, \'OnSay\', \'results = command.execute(data, event.client)\'), (\'/usr/local/games/big-brother-bot/b3/plugins/admin.py\', 2019, \'execute\', \'self.func(data, client, copy.copy(self))\'), (\'/usr/local/games/big-brother-bot/b3/plugins/admin.py\', 1337, \'cmd_permban\', \'sclient.ban(reason, keyword, client)\'), (\'/usr/local/games/big-brother-bot/b3/clients.py\', 516, \'ban\', \'self.console.ban(self, reason, admin, silent)\'), (\'/usr/local/games/big-brother-bot/b3/parsers/iourt41.py\', 1128, \'ban\', "fullreason = self.getMessage(\'banned_by\', self.getMessageVariables(client=client, reason=reason, admin=admin))"), (\'/usr/local/games/big-brother-bot/b3/parser.py\', 794, \'getMessage\', \'return msg % args[0]\')]'
@Jusdabricot your error is not related to this bug. It is related to your b3.xml where you should have <set name="banned_by">$clientname^7 was banned by $adminname^7 $reason</set>
. Please open a topic in the support forum if you need more help with that.
fix available in B3 1.8b2
this issue should be closed now
As reported at http://groupware.bigbrotherbot.net/discussion/view/336 !unban command doesn't work for players with space in their playernames.
Fix suggested by Courgette and confirmed by Toffees is to replace:
with