Modules/IRCEcho/irc onConnecting

From Multi Theft Auto: Wiki
Revision as of 22:36, 9 February 2008 by VRocker (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Package-x-generic.png 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 can be used from irc, so people can check their rights

function irc_onConnecting( IP, Port )
  	outputServerLog( "Connecting to IRC (" .. IP .. ":" .. tostring( Port ) .. ")" )
end