plugins/remove_get_trackers: add deprecation notice

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-08-14 01:13:36 +02:00
parent b2f3c0d069
commit c9f331245f

View file

@ -6,6 +6,8 @@ import re
class Plugin(BasePlugin): class Plugin(BasePlugin):
def init(self): def init(self):
self.api.information('This plugin is deprecated and will be replaced by \'untrackme\'.', 'Warning')
self.api.add_event_handler('muc_say', self.remove_get_trackers) self.api.add_event_handler('muc_say', self.remove_get_trackers)
self.api.add_event_handler('conversation_say', self.remove_get_trackers) self.api.add_event_handler('conversation_say', self.remove_get_trackers)
self.api.add_event_handler('private_say', self.remove_get_trackers) self.api.add_event_handler('private_say', self.remove_get_trackers)