remove trailing whitespace

This commit is contained in:
raylu 2011-07-21 23:16:17 -07:00
parent d139fab231
commit b13e7bfb0b
4 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import "strings"
// the symbol table and add methods/functions on the fly
// [ 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.
func (conn *Conn) Raw(rawline string) { conn.out <- rawline }

View File

@ -263,7 +263,7 @@ func (conn *Conn) shutdown() {
}
// 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 {
str := "GoIRC Connection\n"
str += "----------------\n\n"

View File

@ -16,7 +16,7 @@ import "strings"
// "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
// "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).
func (conn *Conn) AddHandler(name string, f func(*Conn, *Line)) {
n := strings.ToUpper(name)

View File

@ -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) {
var modeop bool // true => add mode, false => remove mode
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
// 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) {
if _, ok := n.Channels[ch]; !ok {
ch.Nicks[n] = new(ChanPrivs)