Modules/SebasIRC/ircJoin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
ThePiotrek (talk | contribs) mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 16: | Line 16: | ||
===Returns=== | ===Returns=== | ||
True if joined, otherwise false. | ''True'' if joined, otherwise ''false''. | ||
==Example== | ==Example== | ||
Line 22: | Line 22: | ||
addEventHandler("onResourceStart", getResourceRootElement(), | addEventHandler("onResourceStart", getResourceRootElement(), | ||
function() | function() | ||
local connect = ircConnect("irc.mtasa.com", 6667, "MTABot | local connect = ircConnect("irc.mtasa.com", 6667, "MTABot") | ||
if connect then | if connect then | ||
ircJoin("#mta.test") | ircJoin("#mta.test") | ||
Line 29: | Line 29: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[pl:Modules/SebasIRC/ircJoin]] | |||
==See also== | ==See also== | ||
{{Modules/SebasIRC/Functions}} | {{Modules/SebasIRC/Functions}} |
Latest revision as of 16:33, 21 July 2016
This function is provided by the external module SebasIRC. You must install this module to use this function. | |
This function joins the bot a channel (, with a password).
Syntax
bool ircJoin(string channel [, string password])
Required arguments
- channel: The channel name.
Optional Arguments
- password: The channel password.
Returns
True if joined, otherwise false.
Example
addEventHandler("onResourceStart", getResourceRootElement(), function() local connect = ircConnect("irc.mtasa.com", 6667, "MTABot") if connect then ircJoin("#mta.test") end end )
See also
Connection:
Channel:
- ircJoin
- ircPart
- ircSay
- ircNotice
- ircInvite
- ircSetChannelMode
- ircGetChannelModes
- ircSetChannelTopic
- ircGetChannelTopic