diff --git a/Makefile b/Makefile index 364fa43..4704236 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ COMMIT := $(shell git rev-parse --short HEAD) TD_COMMIT := "5bbfc1cf5dab94f82e02f3430ded7241d4653551" -VERSION := "v1.10.2" +VERSION := "v1.11.0" MAKEOPTS := "-j4" all: diff --git a/telegabber.go b/telegabber.go index 724b7d3..e5940ff 100644 --- a/telegabber.go +++ b/telegabber.go @@ -16,7 +16,7 @@ import ( goxmpp "gosrc.io/xmpp" ) -var version string = "1.10.2" +var version string = "1.11.0" var commit string var sm *goxmpp.StreamManager diff --git a/telegram/commands.go b/telegram/commands.go index e1f0c8a..df9f5ff 100644 --- a/telegram/commands.go +++ b/telegram/commands.go @@ -457,9 +457,10 @@ func (c *Client) ProcessTransportCommand(cmdline string, resource string) (strin var oldPassword string var newPassword string - // 0 or 1 argument is ignored and the password is reset - if len(args) > 1 { + if len(args) > 0 { oldPassword = args[0] + } + if len(args) > 1 { newPassword = args[1] } _, err := c.client.SetPassword(&client.SetPasswordRequest{