[SQLSeen] Rename MySeen to SQLSeen

master
ShadowNinja 2014-02-25 23:25:56 -06:00
parent 1c7fc08bf6
commit aae23b4af4
4 changed files with 5 additions and 5 deletions

View File

@ -7,10 +7,10 @@ def configure(advanced):
# user or not. You should effect your configuration by manipulating the
# registry as appropriate.
from supybot.questions import expect, anything, something, yn
conf.registerPlugin('MySeen', True)
conf.registerPlugin('SQLSeen', True)
MySeen = conf.registerPlugin('MySeen')
SQLSeen = conf.registerPlugin('SQLSeen')
# This is where your configuration variables (if any) should go. For example:
# conf.registerGlobalValue(Admin, 'someConfigVariableName',
# registry.Boolean(False, """Help for someConfigVariableName."""))

View File

@ -52,7 +52,7 @@ class Entry(Base):
return self.update(networkid, channelid, nick, message)
class MySeen(callbacks.Plugin):
class SQLSeen(callbacks.Plugin):
"""
Records the last time a nick is seen
"""
@ -60,7 +60,7 @@ class MySeen(callbacks.Plugin):
noIgnore = True
def __init__(self, irc):
self.__parent = super(MySeen, self)
self.__parent = super(SQLSeen, self)
self.__parent.__init__(irc)
self.engine = sqlalchemy.create_engine("sqlite:///" + filename)
sessionmaker = sqlalchemy.orm.sessionmaker()
@ -154,5 +154,5 @@ class MySeen(callbacks.Plugin):
self.session.commit()
Class = MySeen
Class = SQLSeen