X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=irc.awk;h=f4ba9ef30000b6cd60a8749b8192511d1bf72431;hb=refs%2Fheads%2Fauth;hp=17f0fb44eaa878b8f5e9d087144b85060208c784;hpb=2cc4461062b8496408f7ae49f864a5067faf4645;p=~andy%2Frhawk diff --git a/irc.awk b/irc.awk index 17f0fb4..f4ba9ef 100644 --- a/irc.awk +++ b/irc.awk @@ -88,6 +88,7 @@ function reply(msg) { function join(chan) { send("JOIN " chan) send("TOPIC " chan) + send("WHO " chan " %na") } function part(chan) { @@ -170,3 +171,28 @@ CMD == "332" { CMD == "TOPIC" { topics[DST] = MSG } + +# Authentication +# todo - netsplits +BEGIN { + send("CAP REQ :account-notify") + send("CAP REQ :extended-join") +} + +CMD == "ACCOUNT" { + if (ARG == "*") + debug("logout") + else + debug("name change") + set() +} + +CMD == "354" { + debug("user list") + set() +} + +CMD == "JOIN" { + debug("join") + set() +}