mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-30 07:21:12 -05:00
Merge branch 'master' of https://github.com/ncoevoet/ChanTracker
This commit is contained in:
commit
7509481b04
@ -60,7 +60,7 @@ def modes(channel, args=(), prefix='', msg=None):
|
|||||||
modes = args
|
modes = args
|
||||||
if msg and not prefix:
|
if msg and not prefix:
|
||||||
prefix = msg.prefix
|
prefix = msg.prefix
|
||||||
return IrcMsg(prefix=prefix, command='MODE',
|
return ircmsgs.IrcMsg(prefix=prefix, command='MODE',
|
||||||
args=[channel] + ircutils.joinModes(modes), msg=msg)
|
args=[channel] + ircutils.joinModes(modes), msg=msg)
|
||||||
|
|
||||||
def matchHostmask (pattern,n):
|
def matchHostmask (pattern,n):
|
||||||
@ -1273,7 +1273,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
itself. it bypass autoexpire and everything, bot will ask for OP, if needed.
|
itself. it bypass autoexpire and everything, bot will ask for OP, if needed.
|
||||||
"""
|
"""
|
||||||
def f(L):
|
def f(L):
|
||||||
return modes(channel,L)
|
return applymodes(channel,L)
|
||||||
self._modes(irc.state.supported.get('modes', 1),self.getChan(irc,channel),ircutils.separateModes(modes),f)
|
self._modes(irc.state.supported.get('modes', 1),self.getChan(irc,channel),ircutils.separateModes(modes),f)
|
||||||
self.forceTickle = True
|
self.forceTickle = True
|
||||||
self._tickle(irc)
|
self._tickle(irc)
|
||||||
@ -1645,7 +1645,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
c.execute("""CREATE TABLE bans (
|
c.execute("""CREATE TABLE bans (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
channel VARCHAR(1000) NOT NULL,
|
channel VARCHAR(1000) NOT NULL,http://www.tf2outpost.com/
|
||||||
oper VARCHAR(1000) NOT NULL,
|
oper VARCHAR(1000) NOT NULL,
|
||||||
kind VARCHAR(1) NOT NULL,
|
kind VARCHAR(1) NOT NULL,
|
||||||
mask VARCHAR(1000) NOT NULL,
|
mask VARCHAR(1000) NOT NULL,
|
||||||
@ -1709,7 +1709,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
while len(i.queue):
|
while len(i.queue):
|
||||||
irc.queueMsg(i.queue.dequeue())
|
irc.queueMsg(i.queue.dequeue())
|
||||||
def f(L):
|
def f(L):
|
||||||
return modes(channel,L)
|
return applymodes(channel,L)
|
||||||
for channel in list(irc.state.channels.keys()):
|
for channel in list(irc.state.channels.keys()):
|
||||||
chan = self.getChan(irc,channel)
|
chan = self.getChan(irc,channel)
|
||||||
# check expired items
|
# check expired items
|
||||||
|
Loading…
x
Reference in New Issue
Block a user