From b7999b201fa26907018f84119c4df754b458569f Mon Sep 17 00:00:00 2001 From: user Date: Tue, 17 Mar 2026 10:55:46 -0700 Subject: [PATCH] fix: correct misplaced doc comments for handleOper and handleAway --- internal/handlers/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/handlers/api.go b/internal/handlers/api.go index 63f30ae..9209294 100644 --- a/internal/handlers/api.go +++ b/internal/handlers/api.go @@ -3157,8 +3157,7 @@ func (hdlr *Handlers) HandleServerInfo() http.HandlerFunc { } } -// handleAway handles the AWAY command. An empty body -// clears the away status; a non-empty body sets it. +// handleOper handles the OPER command for server operator authentication. func (hdlr *Handlers) handleOper( writer http.ResponseWriter, request *http.Request, @@ -3227,6 +3226,8 @@ func (hdlr *Handlers) handleOper( http.StatusOK) } +// handleAway handles the AWAY command. An empty body +// clears the away status; a non-empty body sets it. func (hdlr *Handlers) handleAway( writer http.ResponseWriter, request *http.Request,