36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
plugins = {} # only populated sparsely by .stream()
# start
def __init__(self, actions):
# fake init
action.action.main = empty_parent()
action.action.main.current_channel = self.current_channel
# check if enough arguments, else help
if not actions:
a = self.help
# first cmdline arg == action
else:
command = actions[0]
|
|
|
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
plugins = {} # only populated sparsely by .stream()
# start
def __init__(self, actions):
# fake init
action.main = empty_parent()
action.main.current_channel = self.current_channel
# check if enough arguments, else help
if not actions:
a = self.help
# first cmdline arg == action
else:
command = actions[0]
|