Modules/SebasIRC/ircIsConnected

From Multi Theft Auto: Wiki
Revision as of 18:54, 11 September 2009 by Sebassje (talk | contribs)
Jump to navigation Jump to search


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

This function is currently disabled in the ml_irc-rewrite branch!

This function will check if the irc bot is connected.

It sends simply a PING to the irc server.

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: