mirror of https://github.com/nealey/firebot
Fixes to irc despooler
This commit is contained in:
parent
9da0e88ea8
commit
2e1eb218ed
|
@ -160,7 +160,7 @@ if __name__ == '__main__':
|
||||||
l1 = Arsenic(('irc.lanl.gov', 6667),
|
l1 = Arsenic(('irc.lanl.gov', 6667),
|
||||||
NICK,
|
NICK,
|
||||||
INFO,
|
INFO,
|
||||||
["#x"],
|
["#x", "#csirt"],
|
||||||
ssl=False)
|
ssl=False)
|
||||||
l1.debug = debug
|
l1.debug = debug
|
||||||
|
|
||||||
|
|
5
irc.py
5
irc.py
|
@ -472,11 +472,12 @@ class Bot(SmartIRCHandler):
|
||||||
|
|
||||||
# Despool a line
|
# Despool a line
|
||||||
target, lines = which
|
target, lines = which
|
||||||
|
if lines:
|
||||||
line = lines[0]
|
line = lines[0]
|
||||||
target.msg(line)
|
target.msg(line)
|
||||||
del lines[0]
|
del lines[0]
|
||||||
if not lines:
|
else:
|
||||||
self._spool.remove((target, lines))
|
self._spool.remove(which)
|
||||||
|
|
||||||
def announce(self, text):
|
def announce(self, text):
|
||||||
for c in self.channels:
|
for c in self.channels:
|
||||||
|
|
Loading…
Reference in New Issue