forked from External/ergo
implement draft/read-marker capability
This commit is contained in:
parent
6bd94391ef
commit
32f7868bfd
11 changed files with 190 additions and 79 deletions
|
|
@ -53,7 +53,7 @@ func (cmd *Command) Run(server *Server, client *Client, session *Session, msg ir
|
|||
}
|
||||
|
||||
if client.registered {
|
||||
client.Touch(session)
|
||||
client.Touch(session) // even if `exiting`, we bump the lastSeen timestamp
|
||||
}
|
||||
|
||||
return exiting
|
||||
|
|
@ -178,6 +178,10 @@ func init() {
|
|||
handler: lusersHandler,
|
||||
minParams: 0,
|
||||
},
|
||||
"MARKREAD": {
|
||||
handler: markReadHandler,
|
||||
minParams: 0, // send FAIL instead of ERR_NEEDMOREPARAMS
|
||||
},
|
||||
"MODE": {
|
||||
handler: modeHandler,
|
||||
minParams: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue