X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Fplugin.py;h=6ff12eed45f01194df1597082f105d8519c3a242;hb=51dcb10758c6b5b33fab57aee5d16485fd344d9d;hp=447e7033647ba6ffe5dc1e89f9f47488f4b1d05e;hpb=c42c7531be1c512846ab8795f331e676ab53f003;p=sid.git diff --git a/sid/plugin.py b/sid/plugin.py index 447e703..6ff12ee 100644 --- a/sid/plugin.py +++ b/sid/plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright (C) 2010, 2011 Anaël Verrier -# Copyright (C) 2014 kaliko +# Copyright (C) 2014, 2020 kaliko # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,7 @@ class Plugin: def __init__(self, bot): self.bot = bot - self.log = bot.log + self.log = bot.log.getChild(self.__class__.__name__) def send(self, dest, msg, mtype='chat'): """Send msg to dest @@ -35,7 +35,7 @@ class Plugin: } """ if isinstance(msg, str): - msg = {'mbody':msg} + msg = {'mbody': msg} msg.setdefault('mhtml', None) self.bot.send_message(mto=dest, mtype=mtype,