diff --git a/src/IRCConnection.h b/src/IRCConnection.h index 484a550..4e04cda 100644 --- a/src/IRCConnection.h +++ b/src/IRCConnection.h @@ -84,6 +84,7 @@ @property (assign) uint16_t port; @property (copy) OFString *nickname, *username, *realname; @property (retain) id delegate; +@property (retain, getter=socket) OFTCPSocket *sock; - (void)sendLine: (OFString*)line; - (void)sendLineWithFormat: (OFConstantString*)line, ...; diff --git a/src/IRCConnection.m b/src/IRCConnection.m index f5ff611..d7d9573 100644 --- a/src/IRCConnection.m +++ b/src/IRCConnection.m @@ -35,7 +35,7 @@ #import "IRCChannel.h" @implementation IRCConnection -@synthesize server, port, nickname, username, realname, delegate; +@synthesize server, port, nickname, username, realname, delegate, sock; - init {