Skip to content

Commit a5ecebf

Browse files
committed
Fix handling possibly empty away messages
1 parent 997a4c7 commit a5ecebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/chan_track.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,4 +394,4 @@ def on_away(conn, nick, irc_paramlist):
394394
else:
395395
reason = None
396396

397-
conn.memory["users"][nick].update(is_away=bool(reason), away_message=reason)
397+
conn.memory["users"][nick].update(is_away=(reason is not None), away_message=reason)

0 commit comments

Comments
 (0)