Selaa lähdekoodia

forbid logging in twice via nickserv

tags/v1.0.0-rc1
Shivaram Lingamneni 5 vuotta sitten
vanhempi
commit
d6494957a4
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      irc/nickserv.go

+ 5
- 0
irc/nickserv.go Näytä tiedosto

@@ -238,6 +238,11 @@ func nsLoginThrottleCheck(client *Client, rb *ResponseBuffer) (success bool) {
238 238
 }
239 239
 
240 240
 func nsIdentifyHandler(server *Server, client *Client, command string, params []string, rb *ResponseBuffer) {
241
+	if client.LoggedIntoAccount() {
242
+		nsNotice(rb, client.t("You're already logged into an account"))
243
+		return
244
+	}
245
+
241 246
 	loginSuccessful := false
242 247
 
243 248
 	username := params[0]

Loading…
Peruuta
Tallenna