Merge pull request #2 from bbusse/increase-client-compatibility
Increase client compatibility - let Quassel IRC users join
This commit is contained in:
commit
43fccdbbae
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue