summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6df808a7d..be213f47b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -51,6 +51,8 @@
#include "pet.h"
#include "log.h"
+#include "irc.h"
+
struct Clif_Config {
int packet_db_ver; //Preferred packet version.
int connect_cmd[MAX_PACKET_VER + 1]; //Store the connect command for all versions. [Skotlex]
@@ -5542,6 +5544,9 @@ int clif_GMmessage(struct block_list *bl, char* mes, int len, int flag)
ALL_CLIENT);
if(buf) aFree(buf);
+ if(use_irc && irc_announce_flag && !flag)
+ irc_announce(mes);
+
return 0;
}