ソースを参照

fix SAJOIN not sending a MODE line where applicable

tags/v2.5.0-rc1
Shivaram Lingamneni 3年前
コミット
a6a8548466
1個のファイルの変更5行の追加0行の削除
  1. 5
    0
      irc/channel.go

+ 5
- 0
irc/channel.go ファイルの表示

@@ -820,6 +820,11 @@ func (channel *Channel) Join(client *Client, key string, isSajoin bool, rb *Resp
820 820
 		// don't send topic and names for a SAJOIN of a different client
821 821
 		channel.SendTopic(client, rb, false)
822 822
 		channel.Names(client, rb)
823
+	} else {
824
+		// ensure that SAJOIN sends a MODE line to the originating client, if applicable
825
+		if givenMode != 0 {
826
+			rb.Add(nil, client.server.name, "MODE", chname, modestr, details.nick)
827
+		}
823 828
 	}
824 829
 
825 830
 	// TODO #259 can be implemented as Flush(false) (i.e., nonblocking) while holding joinPartMutex

読み込み中…
キャンセル
保存