Modules/SebasIRC/ircIsConnected: Difference between revisions
Jump to navigation
Jump to search
(New page: {{ml_irc}} __NOTOC__ {{ModuleFunction|SebasIRC}} This function will check if the irc bot is connected. It sends simply a PING to the irc. ==Syntax== <syntaxhighlight lang="lua"> bool ircIsConnected() ...) |
No edit summary |
||
| Line 5: | Line 5: | ||
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. | It sends simply a PING to the irc server. | ||
==Syntax== | ==Syntax== | ||
Revision as of 10:03, 30 May 2009
| 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.
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:
- ircJoin
- ircPart
- ircSay
- ircNotice
- ircInvite
- ircSetChannelMode
- ircGetChannelModes
- ircSetChannelTopic
- ircGetChannelTopic