function join(chan) {
send("JOIN " chan)
send("TOPIC " chan)
+ send("WHO " chan " %na")
}
function part(chan) {
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()
+}