From 174183de69ad8828f28962eef8129d35053751db Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Thu, 25 Apr 2013 05:31:06 +0000 Subject: [PATCH] Add auth --- irc.awk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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() +} -- 2.43.2