Fix join and refresh built-in
This commit is contained in:
parent
010ca98ffd
commit
08ddefd588
@ -9,6 +9,7 @@ imp.reload(server)
|
||||
|
||||
xmlparser = __import__("module_states_file")
|
||||
imp.reload(xmlparser)
|
||||
server.xmlparser = xmlparser
|
||||
server.message.xmlparser = xmlparser
|
||||
xmlparser.module_state.xmlparser = xmlparser
|
||||
|
||||
@ -60,7 +61,7 @@ def launch(servers):
|
||||
|
||||
ret = ""
|
||||
cmds = list()
|
||||
while ret != "quit" and ret != "reset":
|
||||
while ret != "quit" and ret != "reset" and ret != "refresh":
|
||||
sys.stdout.write("\033[0;33m%s§\033[0m " % getPS1())
|
||||
sys.stdout.flush()
|
||||
#TODO: Don't split here, a ; in a quoted string will be splited :s
|
||||
|
@ -131,7 +131,7 @@ class Server(threading.Thread):
|
||||
|
||||
def join(self, chan, password = None):
|
||||
if chan is not None and self.connected and chan not in self.channels:
|
||||
chn = xmlparser.module_state.Module_State("channel")
|
||||
chn = xmlparser.module_state.ModuleState("channel")
|
||||
chn["name"] = chan
|
||||
chn["password"] = password
|
||||
self.node.addChild(chn)
|
||||
|
Loading…
Reference in New Issue
Block a user