PackageInfo: Various improvements.
* Fix encoding issue. * Specify plugin in command proxy.
This commit is contained in:
@ -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'],
|
||||
|
@ -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')])
|
||||
|
||||
|
@ -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):
|
||||
|
Reference in New Issue
Block a user