-
Notifications
You must be signed in to change notification settings - Fork 5
Server
The Server
class manage connection to an IRC server and receive messages.
In a normal use, you probably will not use or interact with this class.
In any case you should directly use methods provided by this class.
This attribute contain the Server ID used in the program to designate this server.
If you delegate some tasks to another bot, you will use this attribute to access is name.
Self documented
Send a normal message to a given channel; before send, checks that the name given is a known and accepted channel.
Send a normal message on each known and accepted channel of this server.
Send a private message to the given user; checks that the name given is not a channel name.
Send a private message to the partner
bot.
This is the final function which really send message to the given channel or nick without any verification.
Close the connection with the server.
Stop the loop and simulate a close but doesn't shutdown the socket (use for hotswap).
Join a channel if it is not already in the list. You can precise a password.
Leave a channel if it is in the list.
Update the list of loaded modules.
If the server is not already connected, launch the server thread.
Main method which connect and wait for messages.