Fixed crash bug in page
authorAri Johnson <ari@cobramush.org>
Fri, 23 Feb 2007 02:47:09 +0000 (02:47 +0000)
committerAri Johnson <ari@cobramush.org>
Fri, 23 Feb 2007 02:47:09 +0000 (02:47 +0000)
src/cmds.c

index 5cf0ce34eb0a24f6b903e92f660afb1d2e6dd99f..0598e2e14033207bffe67a7669f277ab4f111f03 100644 (file)
@@ -1092,19 +1092,13 @@ COMMAND (cmd_leave) {
 }
 
 COMMAND (cmd_page) {
-  char *t;
   int has_eq = 0;
-  if ((arg_right) && (*arg_right)) {
-    t = arg_right;
-  } else {
-    t = NULL;
-  }
   if (args_raw && *args_raw && strchr(args_raw, '='))
     has_eq = 1;
   if (SW_ISSET(sw, SWITCH_PORT))
-    do_page_port(player, arg_left, t);
+    do_page_port(player, arg_left, arg_right);
   else
-    do_page(player, arg_left, t, cause, SW_ISSET(sw, SWITCH_NOEVAL),
+    do_page(player, arg_left, arg_right, cause, SW_ISSET(sw, SWITCH_NOEVAL),
            !(SW_ISSET(sw, SWITCH_BLIND) ||
              (!(SW_ISSET(sw, SWITCH_LIST)) && (BLIND_PAGE))),
            SW_ISSET(sw, SWITCH_OVERRIDE), has_eq);