summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon.go b/daemon.go
index 6b44039..7af810c 100644
--- a/daemon.go
+++ b/daemon.go
@@ -180,6 +180,9 @@ func (daemon *Daemon) ClientRegister(client *Client, command string, cols []stri
return
}
nickname := cols[1]
+ if (strings.HasPrefix(nickname, ":")) {
+ nickname = strings.TrimPrefix(nickname, ":")
+ }
for existingClient := range daemon.clients {
if existingClient.nickname == nickname {
client.ReplyParts("433", "*", nickname, "Nickname is already in use")