Patch to add %S (current status message) and %T (away time) pattern replacement to auto(away,xa) messages
Hi,
Here is a little patch to make Gajim able to reuse the current status message in autoaway and autoxa messages.
Two flags are added to be parsed: %T will be replaced by the auto(away,xa) time, while %S will be replaced by the current status message when going into auto(away,xa).
Example:
autoaway_message = "%S (away >= %T min)
autoawaytime = 1
autoxa_message = "%S (xa >= %T min)
autoxatime = 2
t=0, status: available, "Testing"
t=1, status: away, "Testing (away >= 1 min)"
t=2, status: xa, "Testing (xa >= 2 min)"