Check for null input

This commit is contained in:
KorPhaeron
2015-08-05 20:26:11 -05:00
parent e37efcc9c8
commit 593e9a1d7b
@@ -176,7 +176,8 @@
set category = "Guardian"
set desc = "Choose what you shout as you punch"
var/input = stripped_input(src,"What do you want your battlecry to be? Max length of 6 characters.", ,"", 6)
src.battlecry = input
if(input)
src.battlecry = input
@@ -334,6 +335,8 @@
A.loc = src
stored_obj = A
appearance = A.appearance
pixel_y = A.pixel_Y
pixel_x = A.pixel_x
spawn(600)
stored_obj.loc = get_turf(src.loc)
spawner << "<span class='danger'><B>Failure! Your trap didn't catch anyone this time.</span></B>"