Modules/IRCEcho/irc onConnecting: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{ModuleFunction|IRCEcho}} This is called when the IRC Module is attempting to connect to a server ==Syntax== <syntaxhighlight lang="lua"> function irc_onConnecting ( string IP, int Port ) </c...) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
==Example== | ==Example== | ||
'''Example 1:''' This script | '''Example 1:''' This script outputs to the server console that it is attempting a connection | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function irc_onConnecting( IP, Port ) | function irc_onConnecting( IP, Port ) | ||
Line 18: | Line 18: | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | |||
{{Modules/IRCEcho/Callbacks}} |
Latest revision as of 22:39, 9 February 2008
This function is provided by the external module IRCEcho. You must install this module to use this function. | |
This is called when the IRC Module is attempting to connect to a server
Syntax
function irc_onConnecting ( string IP, int Port )
Required arguments
- IP: The IP/Hostname of the server you are trying to connect to
- Port: The Port of the IRC Server you are trying to connect to
Example
Example 1: This script outputs to the server console that it is attempting a connection
function irc_onConnecting( IP, Port ) outputServerLog( "Connecting to IRC (" .. IP .. ":" .. tostring( Port ) .. ")" ) end