Skip to content

Commit

Permalink
[ADV] fixed @nextmap being unreliable
Browse files Browse the repository at this point in the history
  • Loading branch information
danielepantaleone committed Jul 6, 2015
1 parent 35f4647 commit feeb6e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions b3/plugins/adv/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
06/04/2015 - 1.7 - Fenix - fixed @nextmap being unreliable
03/11/2014 - 1.6.1 - Fenix - updated plugin to use a default rate vale of 2mins is not specified in the
plugin configuration file (previously plugin was not loading at all)
31/08/2014 - 1.6 - Fenix - syntax cleanup
Expand Down
5 changes: 3 additions & 2 deletions b3/plugins/adv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ def adv(self, first_try=True):
ad = self._msg.getnext()
if ad:
if ad == "@nextmap":
if self.console.getNextMap():
ad = "^2Next map: ^3" + self.console.getNextMap()
nextmap = self.console.getNextMap()
if nextmap:
ad = "^2Next map: ^3" + nextmap
else:
self.debug('could not get nextmap')
ad = None
Expand Down

0 comments on commit feeb6e3

Please sign in to comment.