From 646efa4b72934c0a2bbeacb5fb822a30d1edd954 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Tue, 10 May 2011 11:11:05 -0400 Subject: [PATCH] Provided better error message on missing arg_left & arg_right in cmd_event. --- src/modules.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules.c b/src/modules.c index 4347c3a..7ddb0e7 100644 --- a/src/modules.c +++ b/src/modules.c @@ -205,8 +205,15 @@ COMMAND(cmd_event) char *key; char *s; - if(!arg_left[0] || !arg_right[0]) { - notify(player, "Not gonna cut it."); + + if(!arg_left || !*arg_left) { + notify(player, "Must specify an event."); + return; + } + + + if(!arg_right || !*arg_right) { + notify(player, "Must specify an object/attribute pair."); return; } -- 2.30.2