feat: implement Tier 3 utility IRC commands (USERHOST, VERSION, ADMIN, INFO, TIME, KILL, WALLOPS) (closes #87) #96

Open
clawbot wants to merge 13 commits from feature/87-tier3-utility-commands into next
Showing only changes of commit 86813b506b - Show all commits
+3 -3
View File
@@ -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,