parent
903d8f7081
commit
7cac4f5f6c
1 changed files with 2 additions and 7 deletions
|
@ -49,15 +49,10 @@ class IRCatModule:
|
|||
for i in query["params"].split("\n"):
|
||||
if i.split(" ")[0] == "T":
|
||||
topic = " ".join(i.split(" ")[1:])
|
||||
switch = False
|
||||
automodes = {}
|
||||
collected = None
|
||||
for i in query["usermodes"].split(" "):
|
||||
if not switch:
|
||||
collected = i
|
||||
else:
|
||||
automodes[i] = collected
|
||||
switch = not switch
|
||||
for i in query["usermodes"].split("\n"):
|
||||
automodes(i.split(" ")[1]) = i.split(" ")[0]
|
||||
oreo.append({"name": channel, "topic": topic, "automodes": automodes, "modes": query["modes"]})
|
||||
return {"success": "skip", "initchan": oreo}
|
||||
elif command == "NICKSERV" or (command == "PRIVMSG" and args[0].lower() == "nickserv") or command == "PASS":
|
||||
|
|
Loading…
Add table
Reference in a new issue