Revert "Reformat project"
This reverts commit 64e3e1160aa76d191740342ab3edc68807f890fb.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from yaml import dump
|
||||
|
||||
import main
|
||||
from yaml import dump
|
||||
|
||||
|
||||
class ModCommand:
|
||||
@@ -8,9 +7,7 @@ class ModCommand:
|
||||
def __init__(self, *args):
|
||||
self.mod(*args)
|
||||
|
||||
def mod(
|
||||
self, addr, authed, data, obj, spl, success, failure, info, incUsage, length
|
||||
):
|
||||
def mod(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
if authed:
|
||||
if length == 4:
|
||||
if not spl[1] in main.network.keys():
|
||||
@@ -24,9 +21,7 @@ class ModCommand:
|
||||
return
|
||||
|
||||
main.saveConf("network")
|
||||
success(
|
||||
"Successfully set key %s to %s on %s" % (spl[2], spl[3], spl[1])
|
||||
)
|
||||
success("Successfully set key %s to %s on %s" % (spl[2], spl[3], spl[1]))
|
||||
return
|
||||
# Find a better way to do this
|
||||
# elif length == 6:
|
||||
|
||||
Reference in New Issue
Block a user