aboutsummaryrefslogtreecommitdiff
path: root/connector/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'connector/xmpp')
-rw-r--r--connector/xmpp/config.go4
-rw-r--r--connector/xmpp/xmpp.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/connector/xmpp/config.go b/connector/xmpp/config.go
index a6abfac..a3a97ec 100644
--- a/connector/xmpp/config.go
+++ b/connector/xmpp/config.go
@@ -4,8 +4,10 @@ import (
. "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector"
)
+const XMPP_PROTOCOL = "XMPP"
+
func init() {
- Register("xmpp", Protocol{
+ Register(XMPP_PROTOCOL, Protocol{
NewConnector: func() Connector { return &XMPP{} },
Schema: ConfigSchema{
&ConfigEntry{
diff --git a/connector/xmpp/xmpp.go b/connector/xmpp/xmpp.go
index fb34361..dcf1db6 100644
--- a/connector/xmpp/xmpp.go
+++ b/connector/xmpp/xmpp.go
@@ -43,7 +43,7 @@ func (xm *XMPP) SetHandler(h Handler) {
}
func (xm *XMPP) Protocol() string {
- return "xmpp"
+ return XMPP_PROTOCOL
}
func (xm *XMPP) Configure(c Configuration) error {