|
@@ -27,6 +27,7 @@
|
|
#include "mercenary.hpp"
|
|
#include "mercenary.hpp"
|
|
#include "party.hpp"
|
|
#include "party.hpp"
|
|
#include "pc.hpp"
|
|
#include "pc.hpp"
|
|
|
|
+#include "pc_groups.hpp"
|
|
#include "pet.hpp"
|
|
#include "pet.hpp"
|
|
#include "quest.hpp"
|
|
#include "quest.hpp"
|
|
#include "status.hpp"
|
|
#include "status.hpp"
|
|
@@ -1274,7 +1275,7 @@ int intif_parse_WisMessage(int fd)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
if(sd->state.ignoreAll) {
|
|
if(sd->state.ignoreAll) {
|
|
- intif_wis_reply(id, 2);
|
|
|
|
|
|
+ intif_wis_reply(id, (pc_has_permission(sd, PC_PERM_HIDE_SESSION))?1:2);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
wisp_source = RFIFOCP(fd,12); // speed up [Yor]
|
|
wisp_source = RFIFOCP(fd,12); // speed up [Yor]
|
|
@@ -1285,7 +1286,7 @@ int intif_parse_WisMessage(int fd)
|
|
|
|
|
|
if (i < MAX_IGNORE_LIST && sd->ignore[i].name[0] != '\0')
|
|
if (i < MAX_IGNORE_LIST && sd->ignore[i].name[0] != '\0')
|
|
{ //Ignored
|
|
{ //Ignored
|
|
- intif_wis_reply(id, 2);
|
|
|
|
|
|
+ intif_wis_reply(id, (pc_has_permission(sd, PC_PERM_HIDE_SESSION))?1:2);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
//Success to send whisper.
|
|
//Success to send whisper.
|