[Home] [Downloads] [Search] [Help/forum]

MUSHclient scripting

Description of MUSHclient world function: world.ChatAcceptCalls


Name ChatAcceptCalls
Type Method
Summary Accepts incoming chat calls
Prototype long ChatAcceptCalls(short Port);

View list of data type meanings

Description

Starts accepting incoming chat calls.

The port number specifies which port to listen for the calls on. If zero, the default chat port is used. If non-zero, this will change the default chat port.

This will fail if MUSHclient is already accepting calls.

It will also fail if another program or another world (eg. another MUSHclient window) is already listening for calls on the specified port. Thus, if you are accepting calls in different worlds simultaneously, each one must use a different port.

The default port for chats is 4050.


Note: Available in version 3.37 onwards.


VBscript example
ChatAcceptCalls 0  ' use the default port
ChatAcceptCalls 4051  ' use port 4051
Jscript example
ChatAcceptCalls (0);  // use the default port
ChatAcceptCalls (4051);  // use port 4051
PerlScript example
ChatAcceptCalls (0);  # use the default port
ChatAcceptCalls (4051);  # use port 4051
Python example
world.ChatAcceptCalls (0)  # use the default port
world.ChatAcceptCalls (4051)  # use port 4051
Lua example
ChatAcceptCalls (0)  -- use the default port
ChatAcceptCalls (4051)  -- use port 4051
Lua notes
The Port argument is optional. If omitted it defaults to 4050.
Returns eChatAlreadyListening: We are already accepting calls.
eCannotCreateChatSocket: We cannot do that, probably the port is in use.
eOK: Now accepting calls.

View list of return code meanings

Introduced in version 3.37

See also ...

Function Description
ChatCall Calls a chat server (makes an outgoing call) using the MudMaster chat protocol
ChatDisconnect Disconnects a current chat call
ChatDisconnectAll Disconnects all current chat calls
ChatStopAcceptingCalls Stops this world from accepting chat calls

Search for script function

Enter a word or phrase in the box below to narrow the list down to those that match.

The function name, prototype, summary, and description are searched.

Search for:   

Leave blank to show all functions.


Return codes

Many functions return a "code" which indicates the success or otherwise of the function.

You can view a list of the return codes


Function prototypes

The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).

You can view a list of the data types used in function prototypes


View all functions

[Back]

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]