irc

package
v0.0.0-...-115c377 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2013 License: BSD-1-Clause Imports: 0 Imported by: 0

README

irc

This package contains some basic IRC related types.

Usage

go get github.com/jteeuwen/ircb/irc

License

Unless otherwise stated, all of the work in this project is subject to a 1-clause BSD license. Its contents can be found in the enclosed LICENSE file.

Documentation

Overview

This package contains some basic IRC related types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name             string // Channel name.
	Key              string // Channel key. Might be needed to join when channel is protected.
	ChanservPassword string // Chanserv password.
}

Channel represents a single channel.

func (*Channel) IsLocal

func (c *Channel) IsLocal() bool

Returns true if the channel is local to the current server. This is the case when its name starts with '&'.

type User

type User struct {
	Nickname string
	Hostmask string
	LastMsg  int64
}

User represents a single irc user.

Jump to

Keyboard shortcuts

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