Implement indexing into Apache Druid #1
|
@ -221,7 +221,8 @@ class IRCBot(IRCClient):
|
||||||
|
|
||||||
# expand out the hostmask
|
# expand out the hostmask
|
||||||
if not {"nick", "ident", "host"}.issubset(set(cast.keys())):
|
if not {"nick", "ident", "host"}.issubset(set(cast.keys())):
|
||||||
cast["nick"], cast["ident"], cast["host"] = parsen(cast["muser"])
|
if "muser" in cast.keys():
|
||||||
|
cast["nick"], cast["ident"], cast["host"] = parsen(cast["muser"])
|
||||||
|
|
||||||
# handle ZNC stuff
|
# handle ZNC stuff
|
||||||
if {"nick", "ident", "host", "msg"}.issubset(set(cast)):
|
if {"nick", "ident", "host", "msg"}.issubset(set(cast)):
|
||||||
|
|
|
@ -18,7 +18,8 @@ def parsemeta(numName, c):
|
||||||
# need to check if this was received from a relay
|
# need to check if this was received from a relay
|
||||||
# in which case, do not do this
|
# in which case, do not do this
|
||||||
if c["type"] in ["msg", "notice", "action", "topic", "mode"]:
|
if c["type"] in ["msg", "notice", "action", "topic", "mode"]:
|
||||||
userinfo.editUser(c["net"], c["muser"])
|
if "muser" in c.keys():
|
||||||
|
userinfo.editUser(c["net"], c["muser"])
|
||||||
#if c["type"] == "mode":
|
#if c["type"] == "mode":
|
||||||
# userinfo.updateMode(c)
|
# userinfo.updateMode(c)
|
||||||
elif c["type"] == "nick":
|
elif c["type"] == "nick":
|
||||||
|
|
Loading…
Reference in New Issue