shorten modesetting

This commit is contained in:
jkhsjdhjs 2023-07-16 23:13:10 +00:00
parent b3364d99b0
commit 5676bf4735

10
bert.py
View File

@ -115,15 +115,9 @@ def join(chan):
def mode(nick):
print("Setting mode +B")
print("Setting modes +B-x")
try:
sendRaw("MODE "+nick+" +B\n")
except Exception as err:
print("Failed! "+err)
print("Setting mode -x")
try:
sendRaw("MODE "+nick+" -x\n")
sendRaw("MODE "+nick+" +B-x\n")
except Exception as err:
print("Failed! "+err)