This commit is contained in:
James Vega 2004-10-24 01:14:27 +00:00
parent 4dafdcdd57
commit 8954aa2d71
1 changed files with 3 additions and 9 deletions

View File

@ -40,6 +40,7 @@ import string
import os.path
from itertools import imap
import supybot.dbi as dbi
import supybot.conf as conf
import supybot.utils as utils
import supybot.ircdb as ircdb
@ -50,15 +51,6 @@ import supybot.privmsgs as privmsgs
import supybot.registry as registry
import supybot.callbacks as callbacks
import supybot.Owner as Owner
try:
import sqlite
except ImportError:
raise callbacks.Error, 'You need to have PySQLite installed to use this ' \
'plugin. Download it at <http://pysqlite.sf.net/>'
conf.registerPlugin('Factoids')
conf.registerChannelValue(conf.supybot.plugins.Factoids, 'learnSeparator',
@ -260,6 +252,8 @@ class SqliteFactoidsDB(object):
else:
return cursor.fetchall()
FactoidsDB = plugins.DB('Factoids', {'sqlite': SqliteFactoidsDB})
class Factoids(callbacks.Privmsg):
def __init__(self):
self.__parent = super(Factoids, self)