Modules/SebasIRC/ircIsConnected: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
ThePiotrek (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
{{ModuleFunction|SebasIRC}} | {{ModuleFunction|SebasIRC}} | ||
This function will check if the irc bot is connected. | This function will check if the irc bot is connected. | ||
==Syntax== | ==Syntax== | ||
Line 28: | Line 25: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[pl:Modules/SebasIRC/ircIsConnected]] | |||
==See also== | ==See also== | ||
{{Modules/SebasIRC/Functions}} | {{Modules/SebasIRC/Functions}} |
Latest revision as of 16:28, 21 July 2016
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:
- ircJoin
- ircPart
- ircSay
- ircNotice
- ircInvite
- ircSetChannelMode
- ircGetChannelModes
- ircSetChannelTopic
- ircGetChannelTopic