WIP: c.cfg.ServerName defaults to "", so the three new wire handlers emitted an empty server-name parameter under the shipped default config. c.serverSfx already carries the same "neoirc" fallback the HTTP path uses, and sendNumeric uses it for the prefix. Empty-ServerName test follows.
This commit is contained in:
@@ -1350,14 +1350,14 @@ func (c *Conn) handleUserhost(
|
|||||||
func (c *Conn) handleVersion() {
|
func (c *Conn) handleVersion() {
|
||||||
c.sendNumeric(
|
c.sendNumeric(
|
||||||
irc.RplVersion,
|
irc.RplVersion,
|
||||||
c.svc.ServerVersion()+".", c.cfg.ServerName,
|
c.svc.ServerVersion()+".", c.serverSfx,
|
||||||
"",
|
"",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// handleAdmin replies with server admin info.
|
// handleAdmin replies with server admin info.
|
||||||
func (c *Conn) handleAdmin() {
|
func (c *Conn) handleAdmin() {
|
||||||
srvName := c.cfg.ServerName
|
srvName := c.serverSfx
|
||||||
|
|
||||||
c.sendNumeric(
|
c.sendNumeric(
|
||||||
irc.RplAdminMe,
|
irc.RplAdminMe,
|
||||||
@@ -1394,7 +1394,7 @@ func (c *Conn) handleInfo() {
|
|||||||
|
|
||||||
// handleTime replies with the server's current time.
|
// handleTime replies with the server's current time.
|
||||||
func (c *Conn) handleTime() {
|
func (c *Conn) handleTime() {
|
||||||
srvName := c.cfg.ServerName
|
srvName := c.serverSfx
|
||||||
|
|
||||||
c.sendNumeric(
|
c.sendNumeric(
|
||||||
irc.RplTime,
|
irc.RplTime,
|
||||||
|
|||||||
Reference in New Issue
Block a user