From 8ed96e429487f4a037c17fdb8591e99f10d796de Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Mon, 18 Feb 2013 01:38:04 +0000 Subject: [PATCH] Add Me() function for ease of use. --- client/connection.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/connection.go b/client/connection.go index 222fb07..c44329c 100644 --- a/client/connection.go +++ b/client/connection.go @@ -121,6 +121,10 @@ func (conn *Conn) Config() *Config { return conn.cfg } +func (conn *Conn) Me() *state.Nick { + return conn.cfg.Me +} + func (conn *Conn) StateTracker() state.Tracker { return conn.st }