aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 861ecea..5635f10 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -64,7 +64,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
toParts := strings.Split(msg.To, "@")
toID := toParts[0]
if len(toParts) > 1 {
- toIDInt, err := strconv.Atoi(toID)
+ toIDInt, err := strconv.ParseInt(toID, 10, 64)
if err == nil {
session.ProcessOutgoingMessage(toIDInt, msg.Body, 0, msg.From)
return