Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void main() throws Exception
- {
- //initiations
- BufferedWriter bw = null;
- BufferedReader br = null;
- String tempS;
- try
- {
- // put your code here
- Socket DaloIrc = IC.connect();
- if(DaloIrc != null)
- {
- if(DaloIrc.isConnected())
- {
- //our output stream
- bw = new BufferedWriter(new OutputStreamWriter(DaloIrc.getOutputStream()));
- //our input stream
- br = new BufferedReader(new InputStreamReader(DaloIrc.getInputStream()));
- }
- /**
- * This resolvs the title page of webpages
- * @throws java.io.IOException
- */
- public void WebPageTitle(String webPage) throws IOException
- {
- say(webPage);
- bw.flush();
- }
- /**
- * General purpose method for inputting into the channel at hand
- * @param message
- * @throws java.io.IOException
- */
- public void say( String message ) throws IOException
- {
- bw.write( "PRIVMSG " + channel + " :" + message + "\n" );
- bw.flush();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement