Fix various error on DCC connection and post treated messages

This commit is contained in:
Némunaire 2012-11-06 04:14:55 +01:00
commit 02bebb663c
3 changed files with 14 additions and 6 deletions

3
bot.py
View file

@ -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