markweirath / big-brother-bot

Big Brother Bot B3 is a complete and total server administration package for online games. B3 is designed primarily to keep your server free from the derelicts of online gaming, but offers more, much more.
http://www.bigbrotherbot.net
44 stars 32 forks source link

!unban @ not working correctly for CoD7 #72

Closed ozguruysal closed 12 years ago

ozguruysal commented 12 years ago

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:

_commands['unban'] = 'unbanuser %(name)s'

with

_commands['unban'] = 'unbanuser "%(name)s"'
Jusdabricot commented 12 years ago

!unban !ban not working correctly for urban terro too

error processing

Jusdabricot commented 12 years ago

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]\')]'

thomasleveil commented 12 years ago

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

thomasleveil commented 12 years ago

fix available in B3 1.8b2

thomasleveil commented 12 years ago

this issue should be closed now