summaryrefslogtreecommitdiff
path: root/daemon.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.go')
-rw-r--r--daemon.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/daemon.go b/daemon.go
index 7af810c..53dde3e 100644
--- a/daemon.go
+++ b/daemon.go
@@ -180,9 +180,8 @@ func (daemon *Daemon) ClientRegister(client *Client, command string, cols []stri
return
}
nickname := cols[1]
- if (strings.HasPrefix(nickname, ":")) {
- nickname = strings.TrimPrefix(nickname, ":")
- }
+ // Compatibility with some clients prepending colons to nickname
+ nickname = strings.TrimPrefix(nickname, ":")
for existingClient := range daemon.clients {
if existingClient.nickname == nickname {
client.ReplyParts("433", "*", nickname, "Nickname is already in use")