|
@@ -955,6 +955,10 @@ func (client *Client) updateNick(nick, nickCasefolded, skeleton string) {
|
955
|
955
|
|
956
|
956
|
// updateNickMaskNoMutex updates the casefolded nickname and nickmask, not acquiring any mutexes.
|
957
|
957
|
func (client *Client) updateNickMaskNoMutex() {
|
|
958
|
+ if client.nick == "*" {
|
|
959
|
+ return // pre-registration, don't bother generating the hostname
|
|
960
|
+ }
|
|
961
|
+
|
958
|
962
|
client.hostname = client.getVHostNoMutex()
|
959
|
963
|
if client.hostname == "" {
|
960
|
964
|
client.hostname = client.cloakedHostname
|
|
@@ -963,10 +967,6 @@ func (client *Client) updateNickMaskNoMutex() {
|
963
|
967
|
}
|
964
|
968
|
}
|
965
|
969
|
|
966
|
|
- if client.hostname == "" {
|
967
|
|
- return // pre-registration, don't bother generating the hostname
|
968
|
|
- }
|
969
|
|
-
|
970
|
970
|
cfhostname := strings.ToLower(client.hostname)
|
971
|
971
|
client.nickMaskString = fmt.Sprintf("%s!%s@%s", client.nick, client.username, client.hostname)
|
972
|
972
|
client.nickMaskCasefolded = fmt.Sprintf("%s!%s@%s", client.nickCasefolded, strings.ToLower(client.username), cfhostname)
|