From a0020f4e629dced5f86e143037c977cdea60bb20 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Sat, 8 Oct 2011 10:40:58 +0100 Subject: [PATCH] Method to initialise tracker memory. --- client/nickchan.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/nickchan.go b/client/nickchan.go index 3bdf104..c83f83d 100644 --- a/client/nickchan.go +++ b/client/nickchan.go @@ -85,6 +85,11 @@ type ChanPrivs struct { * tracker methods to create/look up nicks/channels \******************************************************************************/ +func (st *stateTracker) initialise() { + st.nicks = make(map[string]*Nick) + st.chans = make(map[string]*Channel) +} + // Creates a new *irc.Nick, initialises it, and stores it so it // can be properly tracked for state management purposes. func (st *stateTracker) NewNick(nick string) *Nick {