<!-- File transfer settings -->
+<!-- Please give the port to listen for Jabber socks5 transfers on. -->
+<ftJabberPort>8010</ftJabberPort>
<!-- Please give the port to listen for HTTP GETs here (Used in OOB file transfers). -->
-<ftOOBPort>8080</ftOOBPort>
+<!--<ftOOBPort>8011</ftOOBPort>-->
<!-- Please give the root URL the transport should send to clients. (You can use an Apache reverse proxy to put this on your ordinary website) -->
-<ftOOBRoot>http://jabber.org/msn/files/</ftOOBRoot>
+<!--<ftOOBRoot>http://host.com/msn/files/</ftOOBRoot>-->
<!-- You can choose which users you wish to have as administrators. These users can perform some tasks with Ad-Hoc commands that others cannot -->
<!--<admins>
features = []
- query = el.getElement("query")
- if not query:
+ for child in el.elements():
+ if child.name == "query":
+ query = child
+ break
+ else:
return []
for child in query.elements():
si.attributes["profile"] = disco.FT
si.attributes["id"] = self.sid
file = si.addElement("file")
- file.attributes["profile"] = disco.FT
+ file.attributes["xmlns"] = disco.FT
file.attributes["size"] = str(self.legacyftp.filesize)
file.attributes["name"] = self.legacyftp.filename
# Feature negotiation
class SavedEvents:
def __init__(self):
- self.nickname = ""
+ self.screenName = ""
self.statusCode = ""
self.personal = ""
self.avatarImageData = ""
def send(self, msncon):
if self.avatarImageData:
msncon.notificationClient.changeAvatar(self.avatarImageData, push=False)
- if self.nickname or self.statusCode or self.personal:
- msncon.changeStatus(self.statusCode, self.nickname, self.personal)
+ if self.screenName or self.statusCode or self.personal:
+ msncon.changeStatus(self.statusCode, self.screenName, self.personal)
for listType, userHandle in self.addContacts:
msncon.addContact(listType, userHandle)
for listType, userHandle in self.remContacts: