From f991ad2c07ae23afbf603bcf1f31baac0bd3624e Mon Sep 17 00:00:00 2001 From: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Date: Fri, 26 Aug 2022 13:29:49 -0500 Subject: [PATCH] fix failed give message appearing on success (#18894) --- code/modules/mob/living/carbon/give.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/living/carbon/give.dm b/code/modules/mob/living/carbon/give.dm index 5062ccbb5b7..1f0986f34e5 100644 --- a/code/modules/mob/living/carbon/give.dm +++ b/code/modules/mob/living/carbon/give.dm @@ -170,6 +170,7 @@ to_chat(giver, "[I] stays stuck to your hand when [receiver] tries to take it!") to_chat(receiver, "[I] stays stuck to [giver]'s hand when you try to take it!") return + UnregisterSignal(I, list(COMSIG_ITEM_EQUIPPED, COMSIG_ITEM_DROPPED)) // We don't want these triggering `cancel_give` at this point, since the give is successful. giver.unEquip(I) receiver.put_in_hands(I) I.add_fingerprint(receiver)