From feeb6e31f8269b30dadbbcb45c66c87b950490fd Mon Sep 17 00:00:00 2001 From: Daniele Pantaleone Date: Mon, 6 Jul 2015 12:14:40 +0200 Subject: [PATCH] [ADV] fixed @nextmap being unreliable --- b3/plugins/adv/CHANGELOG | 1 + b3/plugins/adv/__init__.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/b3/plugins/adv/CHANGELOG b/b3/plugins/adv/CHANGELOG index 649ad8ad9..97b7deeb1 100644 --- a/b3/plugins/adv/CHANGELOG +++ b/b3/plugins/adv/CHANGELOG @@ -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 diff --git a/b3/plugins/adv/__init__.py b/b3/plugins/adv/__init__.py index 3bd0e8937..51ad436c2 100644 --- a/b3/plugins/adv/__init__.py +++ b/b3/plugins/adv/__init__.py @@ -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