Browse Source

fix #769

Add 379 RPL_WHOISMODES
tags/v2.4.0-rc1
Shivaram Lingamneni 3 years ago
parent
commit
5418e5e794
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      irc/numerics.go
  2. 1
    0
      irc/server.go

+ 1
- 0
irc/numerics.go View File

98
 	RPL_ENDOFINFO                 = "374"
98
 	RPL_ENDOFINFO                 = "374"
99
 	RPL_MOTDSTART                 = "375"
99
 	RPL_MOTDSTART                 = "375"
100
 	RPL_ENDOFMOTD                 = "376"
100
 	RPL_ENDOFMOTD                 = "376"
101
+	RPL_WHOISMODES                = "379"
101
 	RPL_YOUREOPER                 = "381"
102
 	RPL_YOUREOPER                 = "381"
102
 	RPL_REHASHING                 = "382"
103
 	RPL_REHASHING                 = "382"
103
 	RPL_YOURESERVICE              = "383"
104
 	RPL_YOURESERVICE              = "383"

+ 1
- 0
irc/server.go View File

450
 	}
450
 	}
451
 	if client == target || hasPrivs {
451
 	if client == target || hasPrivs {
452
 		rb.Add(nil, client.server.name, RPL_WHOISACTUALLY, cnick, tnick, fmt.Sprintf("%s@%s", targetInfo.username, target.RawHostname()), target.IPString(), client.t("Actual user@host, Actual IP"))
452
 		rb.Add(nil, client.server.name, RPL_WHOISACTUALLY, cnick, tnick, fmt.Sprintf("%s@%s", targetInfo.username, target.RawHostname()), target.IPString(), client.t("Actual user@host, Actual IP"))
453
+		rb.Add(nil, client.server.name, RPL_WHOISMODES, cnick, tnick, fmt.Sprintf(client.t("is using modes +%s"), target.modes.String()))
453
 	}
454
 	}
454
 	if target.HasMode(modes.TLS) {
455
 	if target.HasMode(modes.TLS) {
455
 		rb.Add(nil, client.server.name, RPL_WHOISSECURE, cnick, tnick, client.t("is using a secure connection"))
456
 		rb.Add(nil, client.server.name, RPL_WHOISSECURE, cnick, tnick, client.t("is using a secure connection"))

Loading…
Cancel
Save