fix: deaf/undeaf as CallManager members
This commit is contained in:
@@ -20,14 +20,6 @@ def exec_mumble(deaf: bool):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def deaf_mumble():
|
|
||||||
exec_mumble(True)
|
|
||||||
|
|
||||||
|
|
||||||
def undeaf_mumble():
|
|
||||||
exec_mumble(False)
|
|
||||||
|
|
||||||
|
|
||||||
class CallManager:
|
class CallManager:
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
self.config = config
|
self.config = config
|
||||||
@@ -74,3 +66,9 @@ class CallManager:
|
|||||||
response = s.recv(1024)
|
response = s.recv(1024)
|
||||||
print("Hang notify sent", "response=", response.decode())
|
print("Hang notify sent", "response=", response.decode())
|
||||||
s.close()
|
s.close()
|
||||||
|
|
||||||
|
def deaf_mumble():
|
||||||
|
exec_mumble(True)
|
||||||
|
|
||||||
|
def undeaf_mumble():
|
||||||
|
exec_mumble(False)
|
||||||
|
|||||||
Reference in New Issue
Block a user