From: Rick L Bird Date: Tue, 10 May 2011 15:11:05 +0000 (-0400) Subject: Provided better error message on missing arg_left & arg_right in X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=646efa4b72934c0a2bbeacb5fb822a30d1edd954;p=cobramush.git Provided better error message on missing arg_left & arg_right in cmd_event. --- 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; }