Update server.py
This commit is contained in:
parent
158ebd7ffe
commit
b2fba72a12
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,8 @@ for i in mods['allsocket']:
|
||||||
requires["sql"] = config
|
requires["sql"] = config
|
||||||
if __ircat_fakechannels__ in i:
|
if __ircat_fakechannels__ in i:
|
||||||
topic_list = topic_list | i.__ircat_fakechannels__
|
topic_list = topic_list | i.__ircat_fakechannels__
|
||||||
|
for i, v in __ircat_fakechannels__.items():
|
||||||
|
channels_list[i] = []
|
||||||
socketListeners.append(i.IRCatModule(**requires))
|
socketListeners.append(i.IRCatModule(**requires))
|
||||||
commandProviders = []
|
commandProviders = []
|
||||||
for i in mods['command']:
|
for i in mods['command']:
|
||||||
|
@ -293,6 +295,7 @@ def session(connection, client, ip, ssl=False):
|
||||||
else:
|
else:
|
||||||
channels_list[channel] = [pending]
|
channels_list[channel] = [pending]
|
||||||
lower_chans[channel.lower()] = channel
|
lower_chans[channel.lower()] = channel
|
||||||
|
topic_list[channel] = "Topic is not implemented."
|
||||||
except:
|
except:
|
||||||
connection.sendall(bytes(f":{server} NOTICE * :*** Could not join {channel}\r\n","UTF-8"))
|
connection.sendall(bytes(f":{server} NOTICE * :*** Could not join {channel}\r\n","UTF-8"))
|
||||||
print(channels_list)
|
print(channels_list)
|
||||||
|
|
Loading…
Add table
Reference in a new issue