]> Pileus Git - ~andy/rhawk/commitdiff
Add auth auth
authorAndy Spencer <andy753421@gmail.com>
Thu, 25 Apr 2013 05:31:06 +0000 (05:31 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 25 Apr 2013 05:31:06 +0000 (05:31 +0000)
irc.awk

diff --git a/irc.awk b/irc.awk
index 17f0fb44eaa878b8f5e9d087144b85060208c784..f4ba9ef30000b6cd60a8749b8192511d1bf72431 100644 (file)
--- 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()
+}