summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-10-17 19:49:11 -0700
committerOri Bernstein <ori@eigenstate.org>2019-10-17 19:49:11 -0700
commit924ccee8b60d0f0aff1b5d3b859abaa3d4dc6759 (patch)
treef3ad30d4691b04c438ee239b4ed9dcfecb8a428e
parent2f4b821ef292c55b9296e65308e9e95cdf610a06 (diff)
downloadirc.myr-924ccee8b60d0f0aff1b5d3b859abaa3d4dc6759.tar.gz
Notice goes to status window.
-rw-r--r--irc.myr10
1 files changed, 8 insertions, 2 deletions
diff --git a/irc.myr b/irc.myr
index 03faef9..1fb3b03 100644
--- a/irc.myr
+++ b/irc.myr
@@ -70,8 +70,8 @@ const io = {irc, fd
| "PART": delchanuser(irc, srv, src, args)
| "366": shownames(irc, srv, args, 1)
| "401": badmsg(irc, srv, args, ln)
- | "477": receivemsg(irc, srv, src, args.len > 0 ? args[1:] : args)
- | "NOTICE": receivemsg(irc, srv, src, args)
+ | "477": statusmsg(irc, srv, src, args.len > 0 ? args[1:] : args)
+ | "NOTICE": statusmsg(irc, srv, src, args)
| "PRIVMSG": receivemsg(irc, srv, src, args)
| "PING": send(irc, srv, "PONG :{}\r\n", a0)
| "JOIN": joined(irc, srv, src, args)
@@ -141,6 +141,12 @@ const topic = {irc, srv, args
;;
}
+const statusmsg = {irc, srv, src, args
+ if args.len > 1
+ chanmsg(irc, srv, irc.self, src, args[1])
+ ;;
+}
+
const receivemsg = {irc, srv, src, args
var c