Qalculate: require trusted permission (#105)

This commit is contained in:
James Lu 2021-08-01 23:03:48 +02:00
parent 62387421d8
commit 7fdf95074c

View File

@ -33,7 +33,7 @@ except ImportError:
class Qalculate(callbacks.Plugin): class Qalculate(callbacks.Plugin):
"""Frontend for the Qalculate! desktop calculator""" """Frontend for the Qalculate! desktop calculator"""
@wrap([getopts({'update-exrates': ''}), 'text']) @wrap([('checkCapability', 'trusted'), getopts({'update-exrates': ''}), 'text'])
def calc(self, irc, msg, args, optlist, expression): def calc(self, irc, msg, args, optlist, expression):
"""[--update-exrates] <expression> """[--update-exrates] <expression>