From 6488b4a6e0a741ab861d9b2e75e21e8ccf3f9600 Mon Sep 17 00:00:00 2001 From: s3goat <41472927+dimyme@users.noreply.github.com> Date: Wed, 19 Sep 2018 12:42:37 +0200 Subject: [PATCH] without that global, BM will crash --- src/bitmessagecurses/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitmessagecurses/__init__.py b/src/bitmessagecurses/__init__.py index fe9a77d2..46b2921b 100644 --- a/src/bitmessagecurses/__init__.py +++ b/src/bitmessagecurses/__init__.py @@ -706,6 +706,8 @@ def handlech(c, stdscr): blackcur = len(blackcur)-1 redraw(stdscr) def sendMessage(sender="", recv="", broadcast=None, subject="", body="", reply=False): + global streamNumber + streamNumber = 0 # 0 = Auto , 1 = stream 1 is the only supported stream currently if sender == "": return d = Dialog(dialog="dialog")