From 0a3c84664441905922b89c9195dfdb3b3f521d82 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Fri, 23 Feb 2007 02:47:09 +0000 Subject: [PATCH] Fixed crash bug in page --- src/cmds.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cmds.c b/src/cmds.c index 5cf0ce3..0598e2e 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -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); -- 2.30.2