From 2ddd63c488827505cd3e3902ce15bc7fd575e6dd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 17 Feb 2012 15:36:56 +0000 Subject: Fixed missing parenthesis in @who code, removed unused variable in is_atcommand git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15590 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 2d033d737..1f2a82ba6 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -595,7 +595,7 @@ ACMD_FUNC(who) for (pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter)) { if (!((pc_has_permission(pl_sd, PC_PERM_HIDE_SESSION) || (pl_sd->sc.option & OPTION_INVISIBLE)) && pc_get_group_level(pl_sd) > level)) { // you can look only lower or same level if (stristr(pl_sd->status.name, player_name) == NULL // search with no case sensitive - || map_id >= 0 && pl_sd->bl.m != map_id) + || (map_id >= 0 && pl_sd->bl.m != map_id)) continue; switch (display_type) { case 2: { @@ -8633,7 +8633,6 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message char charname2[NAME_LENGTH], params2[100]; char command[100]; char output[CHAT_SIZE_MAX]; - int lv = 0; //Reconstructed message char atcmd_msg[CHAT_SIZE_MAX]; -- cgit v1.2.3-70-g09d2