mirror of https://github.com/fluffle/goirc
remove trailing whitespace
This commit is contained in:
parent
d139fab231
commit
b13e7bfb0b
|
@ -9,7 +9,7 @@ import "strings"
|
||||||
// the symbol table and add methods/functions on the fly
|
// the symbol table and add methods/functions on the fly
|
||||||
// [ CMD, FMT, FMTARGS ] etc.
|
// [ CMD, FMT, FMTARGS ] etc.
|
||||||
|
|
||||||
// Raw() sends a raw line to the server, should really only be used for
|
// Raw() sends a raw line to the server, should really only be used for
|
||||||
// debugging purposes but may well come in handy.
|
// debugging purposes but may well come in handy.
|
||||||
func (conn *Conn) Raw(rawline string) { conn.out <- rawline }
|
func (conn *Conn) Raw(rawline string) { conn.out <- rawline }
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,7 @@ func (conn *Conn) shutdown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dumps a load of information about the current state of the connection to a
|
// Dumps a load of information about the current state of the connection to a
|
||||||
// string for debugging state tracking and other such things.
|
// string for debugging state tracking and other such things.
|
||||||
func (conn *Conn) String() string {
|
func (conn *Conn) String() string {
|
||||||
str := "GoIRC Connection\n"
|
str := "GoIRC Connection\n"
|
||||||
str += "----------------\n\n"
|
str += "----------------\n\n"
|
||||||
|
|
|
@ -16,7 +16,7 @@ import "strings"
|
||||||
// "name" being equivalent to Line.Cmd. Read the RFCs for details on what
|
// "name" being equivalent to Line.Cmd. Read the RFCs for details on what
|
||||||
// replies could come from the server. They'll generally be things like
|
// replies could come from the server. They'll generally be things like
|
||||||
// "PRIVMSG", "JOIN", etc. but all the numeric replies are left as ascii
|
// "PRIVMSG", "JOIN", etc. but all the numeric replies are left as ascii
|
||||||
// strings of digits like "332" (mainly because I really didn't feel like
|
// strings of digits like "332" (mainly because I really didn't feel like
|
||||||
// putting massive constant tables in).
|
// putting massive constant tables in).
|
||||||
func (conn *Conn) AddHandler(name string, f func(*Conn, *Line)) {
|
func (conn *Conn) AddHandler(name string, f func(*Conn, *Line)) {
|
||||||
n := strings.ToUpper(name)
|
n := strings.ToUpper(name)
|
||||||
|
|
|
@ -183,7 +183,7 @@ func (conn *Conn) ParseChannelModes(ch *Channel, modes string, modeargs []string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse mode strings for a nick
|
// Parse mode strings for a nick
|
||||||
func (conn *Conn) ParseNickModes(n *Nick, modes string) {
|
func (conn *Conn) ParseNickModes(n *Nick, modes string) {
|
||||||
var modeop bool // true => add mode, false => remove mode
|
var modeop bool // true => add mode, false => remove mode
|
||||||
for i := 0; i < len(modes); i++ {
|
for i := 0; i < len(modes); i++ {
|
||||||
|
@ -276,7 +276,7 @@ func (n *Nick) initialise() {
|
||||||
//
|
//
|
||||||
// Very slightly different to irc.Channel.AddNick() in that it tests for a
|
// Very slightly different to irc.Channel.AddNick() in that it tests for a
|
||||||
// pre-existing association within the *irc.Nick object rather than the
|
// pre-existing association within the *irc.Nick object rather than the
|
||||||
// *irc.Channel object before associating the two.
|
// *irc.Channel object before associating the two.
|
||||||
func (n *Nick) AddChannel(ch *Channel) {
|
func (n *Nick) AddChannel(ch *Channel) {
|
||||||
if _, ok := n.Channels[ch]; !ok {
|
if _, ok := n.Channels[ch]; !ok {
|
||||||
ch.Nicks[n] = new(ChanPrivs)
|
ch.Nicks[n] = new(ChanPrivs)
|
||||||
|
|
Loading…
Reference in New Issue