summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-05 17:53:53 +0000
committerValaris <Valaris@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-05 17:53:53 +0000
commitde5a209e56a3296e70b63a94e014fbc0485e38cc (patch)
treef1a8a679e2655f255cc5f5e79f91af097121677e /src/map/clif.c
parent88b47855338b6b8b25bd94522d9ee8c7fe3c6529 (diff)
downloadhercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.gz
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.bz2
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.tar.xz
hercules-de5a209e56a3296e70b63a94e014fbc0485e38cc.zip
* Added some of eAIRC bot code, written by me and LittleWolf. It is disabled and has no configuration options yet, as it is not finished. [Valaris]
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5201 54d463be-8e91-2dee-dedb-b68131a5f0ec
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;
}