Sfoglia il codice sorgente

Merge pull request #1902 from slingamn/amode_v_join

fix #1901
tags/v2.10.0-rc1
Shivaram Lingamneni 2 anni fa
parent
commit
86c5839044
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      irc/channel.go

+ 2
- 1
irc/channel.go Vedi File

@@ -767,7 +767,8 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
767 767
 			return errWrongChannelKey, forward
768 768
 		}
769 769
 
770
-		if channel.flags.HasMode(modes.InviteOnly) &&
770
+		// #1901: +h and up exempt from all restrictions, but +v additionally exempts from +i:
771
+		if channel.flags.HasMode(modes.InviteOnly) && persistentMode == 0 &&
771 772
 			!channel.lists[modes.InviteMask].Match(details.nickMaskCasefolded) {
772 773
 			return errInviteOnly, forward
773 774
 		}

Loading…
Annulla
Salva