Modules/SebasIRC/ircIsConnected: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


This function will check if the irc bot is connected.
This function will check if the irc bot is connected.
It sends simply a PING to the irc server.


==Syntax==
==Syntax==

Revision as of 13:27, 18 October 2009


Package-x-generic.png This function is provided by the external module SebasIRC. You must install this module to use this function.


This function will check if the irc bot is connected.

Syntax

bool ircIsConnected()

Returns

True if connected, otherwise false.

Example

addCommandHandler("connected",
  function()
    if ircIsConnected() then
      outputChatBox("-IRC- Connection is ok!")
    else
      outputChatBox("-IRC- Not connected!")
    end
  end
)

See also

Connection:

Channel:

Bot: