From: Ari Johnson Date: Fri, 23 Feb 2007 02:47:09 +0000 (+0000) Subject: Fixed crash bug in page X-Git-Tag: 0.73~115 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=0a3c84664441905922b89c9195dfdb3b3f521d82;p=cobramush.git Fixed crash bug in page --- 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);