mirror of
https://github.com/fluffle/goirc
synced 2025-05-12 18:44:50 +00:00
Method to initialise tracker memory.
This commit is contained in:
parent
d072abbb76
commit
a0020f4e62
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue