Skip to content

Commit

Permalink
Renaming API
Browse files Browse the repository at this point in the history
  • Loading branch information
fclairamb committed Feb 25, 2024
1 parent f08773d commit 053c5a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ type MainDriverExtensionPostAuthMessage interface {
PostAuthMessage(cc ClientContext, user string, authErr error) string
}

// MainDriverExtensionQuitter is an extension that allows to control the quit message
type MainDriverExtensionQuitter interface {
// MainDriverExtensionQuitMessage is an extension that allows to control the quit message
type MainDriverExtensionQuitMessage interface {
// QuitMessage returns the message to display when the user quits the server
QuitMessage() string
}
Expand Down
2 changes: 1 addition & 1 deletion handle_misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (c *clientHandler) handleQUIT(param string) error {

msg := "Goodbye"

if quitter, ok := c.server.driver.(MainDriverExtensionQuitter); ok {
if quitter, ok := c.server.driver.(MainDriverExtensionQuitMessage); ok {
msg = quitter.QuitMessage()
}

Expand Down

0 comments on commit 053c5a9

Please sign in to comment.