projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b46af3d
)
Provided better error message on missing arg_left & arg_right in
author
Rick L Bird
<nveid@yahoo.com>
Tue, 10 May 2011 15:11:05 +0000
(11:11 -0400)
committer
Rick L Bird
<nveid@yahoo.com>
Tue, 10 May 2011 15:11:05 +0000
(11:11 -0400)
cmd_event.
src/modules.c
patch
|
blob
|
history
diff --git
a/src/modules.c
b/src/modules.c
index 4347c3a3a7acd51c1934efa5f4f65bdb690a1bc8..7ddb0e74c3930bcb50779016f06194c6eab20102 100644
(file)
--- 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;
}