summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lrstanley/girc/builtin.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lrstanley/girc/builtin.go')
-rw-r--r--vendor/github.com/lrstanley/girc/builtin.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/lrstanley/girc/builtin.go b/vendor/github.com/lrstanley/girc/builtin.go
index 778a5c68..081e9465 100644
--- a/vendor/github.com/lrstanley/girc/builtin.go
+++ b/vendor/github.com/lrstanley/girc/builtin.go
@@ -108,7 +108,10 @@ func nickCollisionHandler(c *Client, e Event) {
return
}
- c.Cmd.Nick(c.Config.HandleNickCollide(c.GetNick()))
+ newNick := c.Config.HandleNickCollide(c.GetNick())
+ if newNick != "" {
+ c.Cmd.Nick(newNick)
+ }
}
// handlePING helps respond to ping requests from the server.