summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-26 15:34:26 -0300
committershennetsind <ind@henn.et>2014-02-26 15:34:26 -0300
commit37953d04a35040206961bbad582209a35328fed7 (patch)
treeaa843276fa9ff8275facb5be43ce386216a900ae /src/map/clif.c
parent4bd9c3040926f35b14e3eab523620c9d20fe4d6b (diff)
downloadhercules-37953d04a35040206961bbad582209a35328fed7.tar.gz
hercules-37953d04a35040206961bbad582209a35328fed7.tar.bz2
hercules-37953d04a35040206961bbad582209a35328fed7.tar.xz
hercules-37953d04a35040206961bbad582209a35328fed7.zip
Whisper fix, and support for 2013-12-18 Ragexe and 2013-12-30 Ragexe
From Pull Request 255 (Thanks to Kiu, ossi0110, Yommy) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 36adbae9c..5dad37357 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5920,17 +5920,20 @@ void clif_wis_message(int fd, const char* nick, const char* mes, size_t mes_len)
/// 1 = target character is not loged in
/// 2 = ignored by target
/// 3 = everyone ignored by target
-void clif_wis_end(int fd, int flag)
-{
+void clif_wis_end(int fd, int flag) {
+ struct map_session_data *sd = session_isValid(fd) ? session[fd]->session_data : NULL;
+ struct packet_wis_end p;
+
+ if( !sd )
+ return;
+
+ p.PacketType = wisendType;
+ p.flag = (char)flag;
#if PACKETVER >= 20131223
- const int cmd = 0x9df;
-#else
- const int cmd = 0x98;
+ p.unknown = 0;
#endif
- WFIFOHEAD(fd,packet_len(cmd));
- WFIFOW(fd,0) = cmd;
- WFIFOW(fd,2) = flag;
- WFIFOSET(fd,packet_len(cmd));
+
+ clif->send(&p, sizeof(p), &sd->bl, SELF);
}