mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
Completed the removal of callbacks.Privmsg.doPrivmsg.
This commit is contained in:
parent
b5f7bec137
commit
a34589cce7
@ -85,7 +85,7 @@ class Markov(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
if not ircutils.isChannel(msg.args[0]):
|
||||
return callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
return
|
||||
channel = msg.args[0]
|
||||
db = self.getDb(channel)
|
||||
cursor = db.cursor()
|
||||
@ -116,7 +116,6 @@ class Markov(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||
id = int(cursor.fetchone()[0])
|
||||
cursor.execute("INSERT INTO follows VALUES (NULL, %s, NULL)", id)
|
||||
db.commit()
|
||||
return callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
|
||||
_maxMarkovLength = 80
|
||||
_minMarkovLength = 7
|
||||
|
@ -113,7 +113,6 @@ class Notes(callbacks.Privmsg):
|
||||
try:
|
||||
id = ircdb.users.getUserId(msg.prefix)
|
||||
except KeyError:
|
||||
callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
return
|
||||
cursor = self.db.cursor()
|
||||
cursor.execute("""SELECT COUNT(*) FROM notes
|
||||
@ -130,7 +129,6 @@ class Notes(callbacks.Privmsg):
|
||||
cursor.execute("""UPDATE notes SET notified=1
|
||||
WHERE notes.to_id=%s""", id)
|
||||
self.db.commit()
|
||||
callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
|
||||
def sendnote(self, irc, msg, args):
|
||||
"""<recipient> <text>
|
||||
|
@ -461,7 +461,6 @@ class Relay(callbacks.Privmsg):
|
||||
otherIrc.queueMsg(msg)
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
if not isinstance(irc, irclib.Irc):
|
||||
irc = irc.getRealIrc()
|
||||
if self.started and ircutils.isChannel(msg.args[0]):
|
||||
|
@ -108,7 +108,6 @@ class URLSnarfer(plugins.ChannelDBHandler, callbacks.Privmsg):
|
||||
|
||||
_urlRe = re.compile(r"([^\[<(\s]+://[^\])>\s]+)", re.I)
|
||||
def doPrivmsg(self, irc, msg):
|
||||
callbacks.Privmsg.doPrivmsg(self, irc, msg)
|
||||
channel = msg.args[0]
|
||||
db = self.getDb(channel)
|
||||
cursor = db.cursor()
|
||||
|
@ -714,9 +714,6 @@ class Privmsg(irclib.IrcCallback):
|
||||
funcname = '%s.%s' % (f.im_class.__name__, f.im_func.func_name)
|
||||
debug.msg('%s took %s seconds' % (funcname, elapsed), 'verbose')
|
||||
|
||||
def doPrivmsg(self, irc, msg, rateLimit=True):
|
||||
pass
|
||||
|
||||
|
||||
class IrcObjectProxyRegexp:
|
||||
def __init__(self, irc, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user