Skip to content

Commit

Permalink
Fix #47: Show last maps only for nextmap/map votes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkress committed Oct 3, 2017
1 parent 782f9fe commit 0abc509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spunky.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ def handle_callvote(self, line):
spam_msg = False
if spam_msg:
self.game.rcon_bigtext("^7Press ^2F1 ^7or ^1F2 ^7to vote!")
if self.game.get_last_maps():
if self.game.get_last_maps() and ('"g_nextmap' in line or '"map' in line):
self.game.rcon_say("^7Last Maps: ^3%s" % ", ".join(self.game.get_last_maps()))

def new_game(self, line):
Expand Down

0 comments on commit 0abc509

Please sign in to comment.