Documentation
¶
Overview ¶
Package oper provides utilities for opering up on IRC networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrChallengeTimeout = errors.New("timed out while waiting on challenge data") ErrOperFailed = errors.New("failed to oper up") )
Errors related to the automated challenge stuff
Functions ¶
Types ¶
type Challenge ¶
type Challenge struct {
// contains filtered or unexported fields
}
Challenge is a nice wrapper around DoChallenge that manages storing data and decoding b64 for you
func NewChallenge ¶
NewChallenge creates a new Challenge instance with the given password and path
func (*Challenge) DoChallenge ¶
func (c *Challenge) DoChallenge( handler *irccommand.SimpleHandler, writeIRC func(string, ...string) error, operName string, ) error
DoChallenge performs an IRC CHALLENGE from start to finish. It will block until complete
func (*Challenge) GetResults ¶
GetResults executes the below GetResults method with the contents of the buffer
func (*Challenge) OnChallengeMessage ¶
OnChallengeMessage is a helper to push data when RPL_RSACHALLENGE2 is received
Click to show internal directories.
Click to hide internal directories.