aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 96a30c4..6f51427 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -463,9 +463,7 @@ func handleGetDisco(dt discoType, s xmpp.Sender, iq *stanza.IQ) {
if dt == discoTypeInfo {
disco := answer.DiscoInfo()
toID, toOk := toToID(iq.To)
- if toOk {
- disco.AddIdentity("", "account", "registered")
- } else {
+ if !toOk {
disco.AddIdentity("Telegram Gateway", "gateway", "telegram")
disco.AddFeatures("jabber:iq:register")
}