minor rearrangement
This commit is contained in:
parent
cfe51f73c1
commit
effbd27047
|
@ -44,6 +44,9 @@ class UsageError(Exception):
|
||||||
# POST /CHANNEL-ID/SIDE/deallocate -> waiting | deleted
|
# POST /CHANNEL-ID/SIDE/deallocate -> waiting | deleted
|
||||||
|
|
||||||
class Wormhole:
|
class Wormhole:
|
||||||
|
motd_displayed = False
|
||||||
|
version_warning_displayed = False
|
||||||
|
|
||||||
def __init__(self, appid, relay):
|
def __init__(self, appid, relay):
|
||||||
self.appid = appid
|
self.appid = appid
|
||||||
self.relay = relay
|
self.relay = relay
|
||||||
|
@ -62,9 +65,6 @@ class Wormhole:
|
||||||
url += "/" + msgnum
|
url += "/" + msgnum
|
||||||
return url
|
return url
|
||||||
|
|
||||||
motd_displayed = False
|
|
||||||
version_warning_displayed = False
|
|
||||||
|
|
||||||
def handle_welcome(self, welcome):
|
def handle_welcome(self, welcome):
|
||||||
if ("motd" in welcome and
|
if ("motd" in welcome and
|
||||||
not self.motd_displayed):
|
not self.motd_displayed):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user