fix: fix global /last_activity

This commit is contained in:
mathieui 2021-03-13 21:23:03 +01:00
parent 7d40878c0b
commit 45440074ef

View file

@ -914,7 +914,7 @@ class CommandCore:
return self.core.information('Invalid JID for /last_activity: %s' % args[0], 'Error')
try:
await self.core.xmpp.plugin['xep_0012'].get_last_activity(jid)
iq = await self.core.xmpp.plugin['xep_0012'].get_last_activity(jid)
except IqError as error:
if error.etype == 'auth':
msg = 'You are not allowed to see the activity of %s' % jid