PackageInfo: Various improvements.

* Fix encoding issue.
* Specify plugin in command proxy.
This commit is contained in:
Krytarik Raido 2021-11-20 21:17:04 +01:00
parent 39d64b3e74
commit df480587c9
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ import supybot
import supybot.world as world
from importlib import reload
__version__ = "2.3.0"
__version__ = "2.4.0"
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
__contributors__ = {
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Concept'],

View File

@ -39,7 +39,7 @@ class Apt:
self.distros = []
self.plugin = plugin
self.log = plugin.log
os.environ["LANG"] = "C"
os.environ["LANG"] = "C.UTF-8"
if self.aptdir:
self.distros = sorted([x[:-5] for x in os.listdir(self.aptdir) if x.endswith('.list')])

View File

@ -236,7 +236,7 @@ class PackageInfo(callbacks.Plugin):
if not (cmd in ("info", "depends", "find") and rest):
return
(package, release) = (rest.split(None, 1) + [''])[:2]
callbacks.NestedCommandsIrcProxy(irc, msg, [cmd, package, release])
callbacks.NestedCommandsIrcProxy(irc, msg, ["PackageInfo", cmd, package, release])
def inFilter(self, irc, msg):
if not (msg.prefix and msg.args):