user

package
v0.0.0-...-f77af5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserManager

type UserManager struct {
	// contains filtered or unexported fields
}

func NewUserManager

func NewUserManager() *UserManager

func (*UserManager) Act

func (um *UserManager) Act(line *line.Line)

Remember which users are in which channels. Call this on every server line.

func (*UserManager) Channels

func (um *UserManager) Channels() map[string]umChannel

All the channels we have user counts for, as keys in a map

func (*UserManager) Count

func (um *UserManager) Count(channel string) int

Number of current users in the channel

func (*UserManager) In

func (um *UserManager) In(nick string) []string

List of channels nick is in

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL