~emersion/soju

9b40cfe95c94a8bb569918a54c3691fe0dfed6f2 — Eyal Sawady 23 days ago 706b6e3 v0.1.1
handleUserDelete: delete the correct user

Prior to this, we deleted the user issuing the deletion rather than the
user which should've been deleted.
1 files changed, 1 insertions(+), 1 deletions(-)

M service.go
M service.go => service.go +1 -1
@@ 699,7 699,7 @@ func handleUserDelete(dc *downstreamConn, params []string) error {

	u.stop()

	if err := dc.srv.db.DeleteUser(dc.user.ID); err != nil {
	if err := dc.srv.db.DeleteUser(u.ID); err != nil {
		return fmt.Errorf("failed to delete user: %v", err)
	}