From de5a209e56a3296e70b63a94e014fbc0485e38cc Mon Sep 17 00:00:00 2001 From: Valaris Date: Sun, 5 Feb 2006 17:53:53 +0000 Subject: * 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 --- src/map/clif.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/clif.c') 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; } -- cgit v1.2.3-70-g09d2