Merge branch 'master' of git@github.com:thoj/Go-IRC-Client-Library

This commit is contained in:
Thomas Jäger
2010-09-23 18:56:15 +02:00
3 changed files with 10 additions and 3 deletions

View File

@@ -91,7 +91,11 @@ func (irc *IRCConnection) setupCallbacks() {
})
irc.AddCallback("433", func(e *IRCEvent) {
irc.nick = irc.nick + "_"
if len(irc.nick) > 8 {
irc.nick = "_" + irc.nick;
} else {
irc.nick = irc.nick + "_"
}
irc.SendRaw(fmt.Sprintf("NICK %s", irc.nick))
})