summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-06-15 17:23:31 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-06-15 17:23:31 -0300
commit8568f179f5cefa638d564b75119235bac4b9a3b3 (patch)
tree1bd5516f7dd21e5907f2d75ff4781bea0ad649f1 /src/map/clif.c
parent9055b9c84bb915cbf29207484fef80550a88bf74 (diff)
downloadhercules-8568f179f5cefa638d564b75119235bac4b9a3b3.tar.gz
hercules-8568f179f5cefa638d564b75119235bac4b9a3b3.tar.bz2
hercules-8568f179f5cefa638d564b75119235bac4b9a3b3.tar.xz
hercules-8568f179f5cefa638d564b75119235bac4b9a3b3.zip
Sending whisper to a player from an admin account (group 99 [is this right?]) will display the message as a self announce to player. (done a todo)
Also added trade interface properly for HPM, forgot that. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e8de09d70..a752f1bc1 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5964,12 +5964,13 @@ void clif_wis_message(int fd, const char* nick, const char* mes, int mes_len)
safestrncpy((char*)WFIFOP(fd,28), mes, mes_len);
WFIFOSET(fd,WFIFOW(fd,2));
#else
+ struct map_session_data *ssd = iMap->nick2sd(nick);
+
WFIFOHEAD(fd, mes_len + NAME_LENGTH + 8);
WFIFOW(fd,0) = 0x97;
WFIFOW(fd,2) = mes_len + NAME_LENGTH + 8;
safestrncpy((char*)WFIFOP(fd,4), nick, NAME_LENGTH);
- WFIFOL(fd,28) = 0; // isAdmin; if nonzero, also displays text above char
- // TODO: WFIFOL(fd,28) = pc->get_group_level(ssd);
+ WFIFOL(fd,28) = (pc->get_group_level(ssd) == 99) ? 1 : 0; // isAdmin; if nonzero, also displays text above char
safestrncpy((char*)WFIFOP(fd,32), mes, mes_len);
WFIFOSET(fd,WFIFOW(fd,2));
#endif