projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7930a
)
Fix flags.c's use of alias_flag()
author
Ari Johnson
<ari@theari.com>
Thu, 24 Mar 2011 15:58:45 +0000
(15:58 +0000)
committer
Ari Johnson
<ari@theari.com>
Thu, 24 Mar 2011 15:58:45 +0000
(15:58 +0000)
src/flags.c
patch
|
blob
|
history
diff --git
a/src/flags.c
b/src/flags.c
index 9a231587b0ab3890ec11443e4e0fbcc2691c7660..ed65b226e67ca8e1fd05cab9ed6597d062f82842 100644
(file)
--- a/
src/flags.c
+++ b/
src/flags.c
@@
-2292,7
+2292,10
@@
do_flag_alias(dbref player, const char *name, const char *alias)
do_flag_info("FLAG", player, f->name);
} else {
/* Insert the flag in the ptab by the given alias */
- if (alias_flag(name, alias))
+ ptab_start_inserts(n->tab);
+ ptab_insert(n->tab, alias, f);
+ ptab_end_inserts(n->tab);
+ if ((f = match_flag_ns(n, alias)))
do_flag_info("FLAG", player, alias);
else
notify(player, T("Unknown failure adding alias."));