Documentation ¶
Index ¶
- Constants
- func AllowedPrivmsgTextLength(dst string) int
- func InvokeDisconnected()
- func InvokeInit(plugins []string) error
- func InvokeNewConnection(reg irc.HandlerRegistry)
- func InvokeTeardown()
- func PluginNames() []string
- func RegisterPlugin(name string, callbacks Callbacks)
- type Callbacks
- type IrcConn
- func (c IrcConn) Action(dst, msg string)
- func (c IrcConn) ActionN(dst, msg string, n int)
- func (c IrcConn) CTCPReply(dst, cmd, args string)
- func (c IrcConn) CTCPReplyN(dst, cmd, args string, n int)
- func (c IrcConn) Notice(dst, msg string)
- func (c IrcConn) NoticeN(dst, msg string, n int)
- func (c IrcConn) Privmsg(dst, msg string)
- func (c IrcConn) PrivmsgN(dst, msg string, n int)
- type Plugin
Constants ¶
View Source
const ( StatePreInit = iota StatePostInit StatePostTeardown )
Variables ¶
This section is empty.
Functions ¶
func AllowedPrivmsgTextLength ¶
AllowedPrivmsgTextLength returns the amount of text that can be safely given to a Privmsg command with the given destination.
func InvokeDisconnected ¶
func InvokeDisconnected()
func InvokeInit ¶
InvokeInit stops at the first error If plugins is nil, all plugins are inited. Otherwise, only the listed plugins are inited.
func InvokeNewConnection ¶
func InvokeNewConnection(reg irc.HandlerRegistry)
func InvokeTeardown ¶
func InvokeTeardown()
func PluginNames ¶
func PluginNames() []string
func RegisterPlugin ¶
Types ¶
type IrcConn ¶
type IrcConn struct {
// contains filtered or unexported fields
}
Some utility functions for connections
func (IrcConn) CTCPReplyN ¶
Click to show internal directories.
Click to hide internal directories.