1
0
Fork 0
forked from External/ergo

strip out the +a away mode

This commit is contained in:
Shivaram Lingamneni 2019-04-28 15:10:03 -04:00
parent e387b7b328
commit 51465b4a3a
8 changed files with 24 additions and 13 deletions

View file

@ -75,7 +75,7 @@ func sendRoleplayMessage(server *Server, client *Client, source string, targetSt
if rb.session.capabilities.Has(caps.EchoMessage) {
rb.Add(nil, source, "PRIVMSG", tnick, message)
}
if user.HasMode(modes.Away) {
if user.Away() {
//TODO(dan): possibly implement cooldown of away notifications to users
rb.Add(nil, server.name, RPL_AWAY, cnick, tnick, user.AwayMessage())
}