Provided better error message on missing arg_left & arg_right in
authorRick L Bird <nveid@yahoo.com>
Tue, 10 May 2011 15:11:05 +0000 (11:11 -0400)
committerRick L Bird <nveid@yahoo.com>
Tue, 10 May 2011 15:11:05 +0000 (11:11 -0400)
cmd_event.

src/modules.c

index 4347c3a3a7acd51c1934efa5f4f65bdb690a1bc8..7ddb0e74c3930bcb50779016f06194c6eab20102 100644 (file)
@@ -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;
   }