MCPcopy
hub / github.com/Jrohy/multi-v2ray / del_user

Function del_user

v2ray_util/config_modify/multiple.py:134–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133@restart()
134def del_user():
135 cs = ClientSelector(_('del user'))
136 group = cs.group
137
138 if group == None:
139 pass
140 else:
141 client_index = cs.client_index
142 print(_("del user info:"))
143 print(group.show_node(client_index))
144 choice = readchar(_("delete?(y/n): ")).lower()
145 if choice == 'y':
146 if len(group.node_list) == 1:
147 clean_iptables(group.port)
148 nw = NodeWriter()
149 nw.del_user(group, client_index)
150 return True
151 else:
152 print(_("undo delete"))

Callers

nothing calls this directly

Calls 6

del_userMethod · 0.95
ClientSelectorClass · 0.85
readcharFunction · 0.85
clean_iptablesFunction · 0.85
NodeWriterClass · 0.85
show_nodeMethod · 0.80

Tested by

no test coverage detected