Skip to content

Commit

Permalink
Fix XMPP parseNick function (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
tytan652 authored Jul 20, 2021
1 parent 761c0b7 commit da4dcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/xmpp/xmpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (b *Bxmpp) handleUploadFile(msg *config.Message) error {

func (b *Bxmpp) parseNick(remote string) string {
s := strings.Split(remote, "@")
if len(s) > 0 {
if len(s) > 1 {
s = strings.Split(s[1], "/")
if len(s) == 2 {
return s[1] // nick
Expand Down

0 comments on commit da4dcec

Please sign in to comment.