summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-10-17 23:30:42 -0700
committerOri Bernstein <ori@eigenstate.org>2019-10-17 23:30:42 -0700
commit8d6c1b01c6e17894cb1054d954d18272e71e5aae (patch)
treef2e9f0b11d91135c1effa86f9f6cc9879cb05b7c
parente2f5f21134596e13775081de13c9dfafaab3622e (diff)
downloadirc.myr-master.tar.gz
\r\n in ping.HEADmaster
-rw-r--r--irc.myr4
-rw-r--r--main.myr2
2 files changed, 3 insertions, 3 deletions
diff --git a/irc.myr b/irc.myr
index 05b107a..8d2626a 100644
--- a/irc.myr
+++ b/irc.myr
@@ -372,6 +372,7 @@ const changenick = {irc, args
| `std.Some srv:
n = &srv.nick
s = srv.ds
+ send(irc, srv, "NICK {}\r\n", args[0])
| `std.None:
n = &irc.nick
s = "default"
@@ -381,6 +382,7 @@ const changenick = {irc, args
| `std.Some srv:
n = &srv.nick
s = srv.ds
+ send(irc, srv, "NICK {}\r\n", args[0])
| `std.None:
status(irc, irc.self, "no server '{}'", args[2])
-> void
@@ -390,10 +392,8 @@ const changenick = {irc, args
-> void
;;
-
std.slfree(n#)
n# = std.sldup(args[0])
- send(irc, srv, "NICK {}\r\n", srv.user)
status(irc, irc.self, "{} changed to {}", s, n#)
}
diff --git a/main.myr b/main.myr
index 527ae36..12dbac6 100644
--- a/main.myr
+++ b/main.myr
@@ -54,7 +54,7 @@ const main = {args
const ping = {irc
for s : irc.srv
if s.death == 0 && (std.now() - s.ping) > 60*std.Sec
- send(irc, s, "PING irc.myr")
+ send(irc, s, "PING irc.myr\r\n")
/* let's not flood */
s.ping = std.now()
;;