|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJoinChannelPlugin
public class JoinChannelPlugin
This channel joins a predefined set of channels when the client connects to irc. There are also commands to join and part channels manually
| join | * | joins a channel |
|---|---|---|
| part | * | parts a channel |
| Constructor Summary | |
|---|---|
JoinChannelPlugin(java.lang.String server)
creates a new instance that will join the channels for this server as specified in channels_server.conf |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getCommands()
A list of commands that this plugins want to handle. |
java.lang.String[] |
getRestrictedCommands()
A list of restricted commands that this plugins want to handle. |
void |
handleEvent(IrcCommandEvent ice)
This method will be called whenever an event this plugin can handle occurs. |
void |
perform(IrcSender ircSender)
This method will be called when a new connection to an irc server is made, if the plugin is loaded at that time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoinChannelPlugin(java.lang.String server)
server - server to load channels for| Method Detail |
|---|
public void perform(IrcSender ircSender)
PerformOnConnectPlugin
perform in interface PerformOnConnectPluginircSender - a sender that is capable of sending text to server
that the connection was made to.public java.lang.String[] getCommands()
Plugin
getCommands in interface Pluginpublic java.lang.String[] getRestrictedCommands()
Plugin
getRestrictedCommands in interface Pluginpublic void handleEvent(IrcCommandEvent ice)
PluginIrcCommandEvent will hold the information
necessary to find out which command was called.
handleEvent in interface Pluginice - the Event that occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||