Skip to content

Commit a5b3159

Browse files
author
bspkrs
committed
remove ssl dcc stuff (doesn't work)
1 parent 79f3f89 commit a5b3159

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

BotBase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def requestDCC(self, bot, sender, dest, cmd, args):
397397
if self.dccActive:
398398
host, port = self.dccSocket.getAddr()
399399
if self.dccSocket.addPending(sender):
400-
self.sendRaw(CmdGenerator.getDCCCHAT(sender.nick, host, port, self.use_ssl))
400+
self.sendRaw(CmdGenerator.getDCCCHAT(sender.nick, host, port))
401401
else:
402402
self.sendNotice(sender.nick, "§BDCC is not active on this bot.")
403403

IRCHandler.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,8 @@ def getWHOIS(cls, nick):
137137
return "WHOIS {nick}".format(nick = nick) + EOL
138138

139139
@classmethod
140-
def getDCCCHAT(cls, dest, addr, port, use_ssl):
141-
if use_ssl:
142-
ctcpmsg = CmdGenerator.getCTCP("DCC SCHAT chat {addr} {port}".format(addr=CmdGenerator.conv_ip_std_long(addr), port=port))
143-
else:
144-
ctcpmsg = CmdGenerator.getCTCP("DCC CHAT chat {addr} {port}".format(addr=CmdGenerator.conv_ip_std_long(addr), port=port))
140+
def getDCCCHAT(cls, dest, addr, port):
141+
ctcpmsg = CmdGenerator.getCTCP("DCC CHAT chat {addr} {port}".format(addr=CmdGenerator.conv_ip_std_long(addr), port=port))
145142
privmsg = CmdGenerator.getPRIVMSG(dest, ctcpmsg)
146143
return privmsg
147144

0 commit comments

Comments
 (0)