thomasleveil / b3-plugin-poweradminbf3

BigBrotherBot Poweradmin plugin for Battlefield 3
https://github.com/courgette/b3-plugin-poweradminbf3/wiki
4 stars 3 forks source link

loadconfig clears maplist if no maplist is provided in config file in some cases #17

Closed ozguruysal closed 12 years ago

ozguruysal commented 12 years ago

Although not yet implemented vars.serverMessage and vars.serverDescription causes this issue if included in the config file to be loaded by !loadconfig command.

Example:

n = 'vars.serverMessage "Welcome to 10th Tactical Realism Server Play as a team"' n = n.split() print n print len(n)

will output: ['vars.serverMessage', '"Welcome', 'to', '10th', 'Tactical', 'Realism', 'Server', 'Play', 'as', 'a', 'team"'] 11

thus cause the plugin to send "mapList.clear" command