~gjabell/goirc

d7bb156c09ddb4d2067d0fb6a22efe53a0077956 — Galen Abell 2 months ago 5e4de55 master
Update READ to MARKREAD
1 files changed, 3 insertions(+), 3 deletions(-)

M client/commands.go
M client/commands.go => client/commands.go +3 -3
@@ 19,6 19,7 @@ const (
	INVITE       = "INVITE"
	JOIN         = "JOIN"
	KICK         = "KICK"
	MARKREAD     = "MARKREAD"
	MODE         = "MODE"
	NICK         = "NICK"
	NOTICE       = "NOTICE"


@@ 28,7 29,6 @@ const (
	PING         = "PING"
	PONG         = "PONG"
	PRIVMSG      = "PRIVMSG"
	READ         = "READ"
	QUIT         = "QUIT"
	TOPIC        = "TOPIC"
	USER         = "USER"


@@ 327,6 327,6 @@ func (conn *Conn) Cap(subcommmand string, capabilities ...string) {
	}
}

func (conn *Conn) Read(target string, timestamp time.Time) {
	conn.Raw(READ + " " + target + " timestamp=" + timestamp.Format(ServerTimeLayout))
func (conn *Conn) MarkRead(target string, timestamp time.Time) {
	conn.Raw(MARKREAD + " " + target + " timestamp=" + timestamp.Format(ServerTimeLayout))
}