for newline in lines:
msg += br
br = linebreak
- if (len(msg) + len(newline)) > (bot.mumble.get_max_message_length() - 4) != 0: # 4 == len("<br>")
+ if bot.mumble.get_max_message_length()\
+ and (len(msg) + len(newline)) > (bot.mumble.get_max_message_length() - 4): # 4 == len("<br>")
bot.send_msg(msg, text)
msg = ""
msg += newline
# the one you want
var.playlist.point_to(int(parameter) - 1 - 1)
- bot.interrupt()
+ if not bot.is_pause:
+ bot.interrupt()
+ else:
+ bot.is_pause = False
else:
bot.send_msg(constants.strings('invalid_index', index=parameter), text)