diff --git a/libs/libdingaling/src/libdingaling.c b/libs/libdingaling/src/libdingaling.c index f0b85e87f6..9394a600d9 100644 --- a/libs/libdingaling/src/libdingaling.c +++ b/libs/libdingaling/src/libdingaling.c @@ -606,7 +606,7 @@ static int on_disco_default(void *user_data, ikspak *pak) if ((iq = iks_new("iq"))) { int all = 0; - iks_insert_attrib(iq, "from", handle->login); + iks_insert_attrib(iq, "from", iks_find_attrib(pak->x, "to")); if (pak->from) { iks_insert_attrib(iq, "to", pak->from->full); }