Fix a couple typos
This commit is contained in:
parent
eb2dcaade2
commit
a2a27edfd4
|
@ -245,7 +245,7 @@ class Bantracker(callbacks.Plugin):
|
|||
user.addAuth(msg.prefix)
|
||||
ircdb.users.setUser(user, flush=False)
|
||||
if not self.registryValue('bansite'):
|
||||
irc.error("No bansite enabled, please set conf.supybot.plugins.Bantracker.bansite")
|
||||
irc.error("No bansite set, please set supybot.plugins.Bantracker.bansite")
|
||||
return
|
||||
sessid = md5.new('%s%s%d' % (msg.prefix, time.time(), random.randint(1,100000))).hexdigest()
|
||||
self.db_run("""INSERT INTO sessions (session_id, user, time) VALUES (%s, %s, %d);""",
|
||||
|
|
|
@ -51,7 +51,7 @@ class Apt:
|
|||
return "Please use http://packages.ubuntu.com/ to search for files"
|
||||
if data[0] == 'E:': # No files in the cache dir
|
||||
plugin.log.error("Please run the 'update_apt_file' script")
|
||||
return "Cache out of data, please contact the administrator"
|
||||
return "Cache out of date, please contact the administrator"
|
||||
if len(data) > 5:
|
||||
return "File %s found in %s (and %d others)" % (pkg, ', '.join(data[:5]), len(data)-5)
|
||||
return "File %s found in %s" % (pkg, ', '.join(data))
|
||||
|
|
Loading…
Reference in New Issue