From 8668b12a811c79e4ea759616daf645080d7d763d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 28 Feb 2020 10:34:22 +0100 Subject: Rename DbCache to DbKv --- connector/irc/config.go | 4 +++- connector/irc/irc.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'connector/irc') diff --git a/connector/irc/config.go b/connector/irc/config.go index 33469ed..0b36473 100644 --- a/connector/irc/config.go +++ b/connector/irc/config.go @@ -4,8 +4,10 @@ import ( . "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector" ) +const IRC_PROTOCOL = "IRC" + func init() { - Register("irc", Protocol{ + Register(IRC_PROTOCOL, Protocol{ NewConnector: func() Connector { return &IRC{} }, Schema: ConfigSchema{ &ConfigEntry{ diff --git a/connector/irc/irc.go b/connector/irc/irc.go index 977b71d..dafe9db 100644 --- a/connector/irc/irc.go +++ b/connector/irc/irc.go @@ -32,7 +32,7 @@ func (irc *IRC) SetHandler(h Handler) { } func (irc *IRC) Protocol() string { - return "irc" + return IRC_PROTOCOL } func (irc *IRC) Configure(c Configuration) error { -- cgit v1.2.3