core: Limit "User is away" to 1hr or when changed
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 23 Aug 2018 02:36:47 +0000 (21:36 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 28 Aug 2018 20:43:11 +0000 (22:43 +0200)
commitf12d6496251729f7d21f4fbcb0814dec7fba4b75
tree15fa47f459aabf017d598ed0c11bccf7b1be31c7
parent41a136e99bffde8e203fb1abff7c9affbbb16a8b
core: Limit "User is away" to 1hr or when changed

Increase the "* User is away" silencing to one hour, and add tracking
for changes in away state.  Only print the "* User is away" if away
state has changed since last away message (including removing and
applying the same away message), or if 1 hour has elapsed.

This reduces the spamming of "* User is away" when one often knows
that, yes, the user is away.  Any change in away state or message
will still be shown.
src/common/ircuser.cpp
src/common/ircuser.h
src/core/eventstringifier.cpp