summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Matveev <stargrave@stargrave.org>2015-09-28 11:36:52 +0300
committerSergey Matveev <stargrave@stargrave.org>2015-09-28 11:36:52 +0300
commit43fccdbbae9c96db2eb26191ac4a4992b837583d (patch)
treedeb82309d14d8173634c71842931494e87cac1f2
parentb67868201041359c456457b62910866a8e072b2b (diff)
parent5a17f44b24340dc970bbbbfb7420fb86f88837b7 (diff)
downloadgoircd-43fccdbbae9c96db2eb26191ac4a4992b837583d.tar.xz
Merge pull request #2 from bbusse/increase-client-compatibility
Increase client compatibility - let Quassel IRC users join
-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")