Tweak logging for marking users active

This commit is contained in:
Kufat 2022-09-05 20:57:20 -04:00
parent 4737074374
commit 47219a7393
2 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,6 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {
b.Log.Debugf("<= Sending message from %s on %s to gateway", event.Params[0], b.Account)
if b.ActivityTimeout > 0 {
b.Log.Debugf("<= Updating last-active time for user %s", event.Source.Name)
b.markUserActive(event.Source.Name, channel, time.Now().Unix())
}
b.Remote <- rmsg

View File

@ -501,6 +501,7 @@ func (b *Birc) cleanActiveMap() {
}
func (b *Birc) markUserActive(nick string, channel string, activeTime int64) {
b.Log.Debugf("<= Updating last-active time for user %s in channel %s to %d", nick, channel, activeTime)
b.activeUsersMutex.Lock()
defer b.activeUsersMutex.Unlock()
nickActivity, found := b.activeUsers[nick]