DCC class can now send files

This commit is contained in:
Némunaire 2012-07-23 04:09:48 +02:00
parent 9a6c1fbb7c
commit 336cab6b2a
2 changed files with 56 additions and 46 deletions

View file

@ -284,6 +284,10 @@ class Message:
elif self.cmd[0] == "pvdcctest":
print("dcctest")
self.send_snd("Test DCC")
elif self.cmd[0] == "dccsendtest":
print("dccsendtest")
conn = dcc.DCC(self.srv, self.sender)
conn.send_file("bot_sample.xml")
else:
for im in mods:
if im.has_access(self) and im.parseanswer(self):
@ -295,7 +299,6 @@ class Message:
return
#Assume the message starts with nemubot:
if self.private:
print ("private")
for im in mods:
if im.has_access(self) and im.parseask(self):
return