Modules/bIRC/ircGetQuitMessage
Jump to navigation
Jump to search
This function is provided by the external module Basic IRC Module. You must install this module to use this function. | |
This function is used to retrieve the quit message of the specified ircbot.
Syntax
string ircGetQuitMessage ( ircbot theBot )
Required Arguments
- theBot: The ircbot which quit message you want to get
Returns
Returns a string of the ircbot's quit message if passed arguments were valid, false otherwise.
Example
This example creates an ircbot called DummyBot, sets it's quit message and makes it connect to a server. Once it has connected, it prints out the quit message to server log.
function resourceStart () dummyBot = ircCreateBot ( "DummyBot" ) ircSetQuitMessage ( dummyBot, "Baibai" ) ircConnect ( dummyBot, "irc.gtanet.com", 6667 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart ) function event_ircOnConnect ( theBot ) outputServerLog ( ircGetName ( theBot ) .. "'s quit message is " .. ircGetQuitMessage ( theBot ) ) end
See Also
Bot functions
Creation
Connection
Other
IRC functions
Channel
- ircGetChannelMode
- ircGetChannelTopic
- ircGetChannelUsers
- ircGetConnectedChannels
- ircJoinChannel
- ircPartChannel
- ircSetChannelMode
- ircSetChannelTopic