Fix various error on DCC connection and post treated messages
This commit is contained in:
parent
aa697a36d0
commit
02bebb663c
3 changed files with 14 additions and 6 deletions
3
bot.py
3
bot.py
|
|
@ -28,6 +28,7 @@ import event
|
|||
import hooks
|
||||
from networkbot import NetworkBot
|
||||
from IRCServer import IRCServer
|
||||
from DCC import DCC
|
||||
import response
|
||||
|
||||
ID_letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
|
|
@ -94,7 +95,7 @@ class Bot:
|
|||
|
||||
def _ctcp_dcc(self, srv, msg):
|
||||
"""Response to DCC CTCP message"""
|
||||
ip = self.srv.toIP(int(msg.cmds[3]))
|
||||
ip = srv.toIP(int(msg.cmds[3]))
|
||||
conn = DCC(srv, msg.sender)
|
||||
if conn.accept_user(ip, int(msg.cmds[4])):
|
||||
srv.dcc_clients[conn.sender] = conn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue