Add /away
This commit is contained in:
parent
ed9a1c3216
commit
ccb0149b3d
6 changed files with 29 additions and 5 deletions
|
@ -183,6 +183,15 @@ func handleWS(ws *websocket.Conn) {
|
|||
if irc, ok := session.getIRC(data.Server); ok {
|
||||
irc.Whois(data.User)
|
||||
}
|
||||
|
||||
case "away":
|
||||
var data Away
|
||||
|
||||
json.Unmarshal(req.Request, &data)
|
||||
|
||||
if irc, ok := session.getIRC(data.Server); ok {
|
||||
irc.Away(data.Message)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue