Fix a couple typos

This commit is contained in:
Terence Simpson 2008-05-05 19:10:49 +01:00
parent eb2dcaade2
commit a2a27edfd4
2 changed files with 2 additions and 2 deletions

View File

@ -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);""",

View File

@ -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))