summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-17 15:36:56 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-17 15:36:56 +0000
commit2ddd63c488827505cd3e3902ce15bc7fd575e6dd (patch)
tree828546491082704e6f791b58a0825d9d455fb00c
parent5cc9f30cbe8c57a97e58a5a3b5387622e4304873 (diff)
downloadhercules-2ddd63c488827505cd3e3902ce15bc7fd575e6dd.tar.gz
hercules-2ddd63c488827505cd3e3902ce15bc7fd575e6dd.tar.bz2
hercules-2ddd63c488827505cd3e3902ce15bc7fd575e6dd.tar.xz
hercules-2ddd63c488827505cd3e3902ce15bc7fd575e6dd.zip
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
-rw-r--r--src/map/atcommand.c3
1 files changed, 1 insertions, 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];