/**
 * Copyright (C) 2013 Alexander Szczuczko
 *
 * This file may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 */
package ca.szc.keratin.core.event;

import java.net.Socket;

import net.engio.mbassy.bus.MBassador;

/**
 * An event about a change in the IRC socket connection
 */
public abstract class IrcConnectionEvent
    extends IrcEvent
{

    private final Socket socket;

    public IrcConnectionEvent( MBassador<IrcEvent> bus, Socket socket )
    {
        super( bus );
        this.socket = socket;
    }

    /**
     * Get the socket that the event pertains to.
     * 
     * @return The related Socket, or null if initial or final use of the socket.
     */
    public Socket getSocket()
    {
        return socket;
    }

}

@@ -787,10 +787,127 @@
 %0A    %7D%0A%0A
+    @Override%0A    public String toString()%0A    %7B%0A        return %22IrcConnectionEvent %5Bsocket=%22 + socket + %22%5D%22;%0A    %7D%0A%0A
 %7D%0A

Add toString to IrcConnectionEvent