minor rearrangement

This commit is contained in:
Brian Warner 2015-07-24 16:00:13 -07:00
parent cfe51f73c1
commit effbd27047

View File

@ -44,6 +44,9 @@ class UsageError(Exception):
# POST /CHANNEL-ID/SIDE/deallocate -> waiting | deleted
class Wormhole:
motd_displayed = False
version_warning_displayed = False
def __init__(self, appid, relay):
self.appid = appid
self.relay = relay
@ -62,9 +65,6 @@ class Wormhole:
url += "/" + msgnum
return url
motd_displayed = False
version_warning_displayed = False
def handle_welcome(self, welcome):
if ("motd" in welcome and
not self.motd_displayed):