world.ChatStopFileTransfer
Stops a file transfer in progress to that chat user
Prototype
long ChatStopFileTransfer(long ID);
Description
If a file transfer is in progress (send or receive) it is aborted, and the user at the other end notified, if possible.
You can use GetChatInfo to see if a file transfer is in progress.
Each call is identified by its "chat ID" - each chat session has a unique ID, which starts at one, and is incremented by one, per world.
You can use GetChatList to find a list of chat IDs that is current.
You can use ChatGetID to find the chat ID corresponding to a particular chat name.
VBscript example
ChatStopFileTransfer ChatGetID ("peter")
Jscript example
ChatStopFileTransfer (ChatGetID ("peter"));
PerlScript example
ChatStopFileTransfer (ChatGetID ("peter"));
Python example
world.ChatStopFileTransfer (world.ChatGetID ("peter"))
Lua example
ChatStopFileTransfer (ChatGetID ("peter"))
Return value
eChatIDNotFound: That chat ID is not connected.
eNotTransferringFile: We are not transferring a file.
eOK: File transfer aborted.
Related topic
See also
| Function | Description |
|---|---|
| ChatGetID | Looks up what chat ID (identifier) corresponds to a particular chat name |
| ChatSendFile | Starts sending a file to the specified chat user |
| GetChatInfo | Get information about a chat connection |