Fix flags.c's use of alias_flag()
authorAri Johnson <ari@theari.com>
Thu, 24 Mar 2011 15:58:45 +0000 (15:58 +0000)
committerAri Johnson <ari@theari.com>
Thu, 24 Mar 2011 15:58:45 +0000 (15:58 +0000)
src/flags.c

index 9a231587b0ab3890ec11443e4e0fbcc2691c7660..ed65b226e67ca8e1fd05cab9ed6597d062f82842 100644 (file)
@@ -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."));