Skip to content

Commit

Permalink
Fix: Uplink radio exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-34 committed Nov 30, 2023
1 parent e5e4837 commit 7021e99
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modular_ss220/devices/code/items/radio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
. += span_info("Alt-click on \the [name] to toggle broadcasting.")
. += span_info("Ctrl-Shift-click on \the [src] to toggle speaker.")

/obj/item/radio/AltClick(mob/user)
/obj/item/radio/AltClick(obj/item/I, mob/user)
if(!istype(I, /obj/item/radio/headset))
return
if(!Adjacent(user))
return
if(!iscarbon(usr) && !isrobot(usr))
Expand All @@ -53,7 +55,9 @@
broadcasting = !broadcasting
to_chat(user, span_notice("You toggle broadcasting [broadcasting ? "on" : "off"]."))

/obj/item/radio/CtrlShiftClick(mob/user)
/obj/item/radio/CtrlShiftClick(obj/item/I, mob/user)
if(!istype(I, /obj/item/radio/headset))
return
if(!Adjacent(user))
return
if(!iscarbon(usr) && !isrobot(usr))
Expand Down

0 comments on commit 7021e99

Please sign in to comment.